Authored by Hal Mueller

a bit more into the unit test class

... ... @@ -842,7 +842,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = $SOURCE_ROOT/RunIPhoneUnitTest.sh;
shellScript = "#$SOURCE_ROOT/RunIPhoneUnitTest.sh";
};
386676E00F6B73DA00C56B17 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
... ...
... ... @@ -8,6 +8,7 @@
#import "GTMSenTestCase.h"
/// Unit tests go here. See http://developer.apple.com/tools/unittest.html for guidance.
@interface RouteMeTests : SenTestCase {
}
... ...
... ... @@ -33,8 +33,12 @@
STAssertNotNil((myTilesource = [[RMCloudMadeMapSource alloc] initWithAccessKey:@"0199bdee456e59ce950b0156029d6934" styleNumber:999]),
@"tilesource creation failed");
STAssertNoThrow([myTilesource release], @"tilesource release failed");
STAssertNil((myTilesource = [[RMCloudMadeMapSource alloc] initWithAccessKey:@"0199bdee456e59ce950b0156029d693" styleNumber:999]),
@"bogus CloudMade key does not trigger error");
STAssertNil((myTilesource = [[RMCloudMadeMapSource alloc] initWithAccessKey:nil styleNumber:999]),
@"empty CloudMade key does not trigger error");
STAssertNoThrow([myTilesource release], @"tilesource release failed");
STAssertThrows((myTilesource = [[RMCloudMadeMapSource alloc] initWithAccessKey:@"0199bdee456e59ce950b0156029d693" styleNumber:999]),
@"bogus CloudMade key does not trigger error");
STAssertNoThrow([myTilesource release], @"tilesource release failed");
}
- (void)testGeohashing
... ...