Skip to content
Snippets Groups Projects
Commit 485fb73e authored by cramakri's avatar cramakri
Browse files

Improved test code for the iPad service

SVN: 27273
parent bf9a797f
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ enum CISOBIpadServiceErrorCode {
//! Log the user into the openBIS instance
- (CISDOBAsyncCall *)loginUser:(NSString *)user password:(NSString *)password;
//! Get all root-level entities from the openBIS ipad service. The success message will be invoked with a collection of CISDOBIpadRawEntity objects.
//! Get all root-level entities from the openBIS ipad service, possibly along with some children as well. The success message will be invoked with a collection of CISDOBIpadRawEntity objects.
- (CISDOBAsyncCall *)listRootLevelEntities;
@end
......
......@@ -69,14 +69,15 @@
NSString *summaryHeader = rawEntity.summaryHeader;
STAssertNotNil(summaryHeader, @"The summary header should not be nil");
STAssertNotNil(rawEntity.permId, @"PermId should not be nil");
STAssertNotNil(rawEntity.refcon, @"Ref con should not be nil");
STAssertNotNil(rawEntity.refcon, @"Refcon should not be nil");
STAssertNotNil(rawEntity.category, @"Group should not be nil");
STAssertTrue([summaryHeader length], @"Summary header should not be empty");
STAssertNotNil(rawEntity.summary, @"Summary should not be nil");
// STAssertNotNil(rawEntity.identifier, @"Identifier should not be nil");
// STAssertNotNil(rawEntity.imageUrl, @"Image url should not be nil");
// STAssertNotNil(rawEntity.children, @"Children should not be nil");
// STAssertNotNil(rawEntity.properties, @"Properties type should not be nil");
STAssertNotNil(rawEntity.children, @"Children should not be nil");
STAssertNotNil(rawEntity.rootLevel, @"RootLevel should not be nil");
STAssertNil(rawEntity.identifier, @"Identifier should be nil");
STAssertNil(rawEntity.imageUrl, @"Image url should be nil");
STAssertNil(rawEntity.properties, @"Properties should be nil");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment