Commits

Anonymous committed 34f244f

Make _mockDelegate an id type

  • Participants
  • Parent commits 70aa292

Comments (0)

Files changed (1)

WhereIsMyMac-WithUnitTests/Classes/CoreLocationFormatterTest.m

 
 @interface CoreLocationFormatterTest : SenTestCase
 {
-	id<CoreLocationFormatterDelegate> _mockDelegate;
+	id _mockDelegate;
 	CoreLocationFormatter * _formatter;
 }
 @end
 - (void)tearDown
 {
 	// Verify
-	[(id)_mockDelegate verify];
+	[_mockDelegate verify];
 	
 	// Teardown
 	[_formatter release]; _formatter = nil;
 {
 	// Setup
 	CLLocation * location = [self makeLocationWithLatitude:-37.80996889 longitude:144.96326388];
-	[[(id)_mockDelegate expect] locationFormatter:_formatter
-						 didUpdateFormattedString:@"ll=-37.809969,144.963264 spn=-0.000018,-0.000014"
-									locationLabel:@"-37.809969, 144.963264"
-								   accuractyLabel:[NSString stringWithFormat:@"%f", kCLLocationAccuracyBest]];
+	[[_mockDelegate expect] locationFormatter:_formatter
+					 didUpdateFormattedString:@"ll=-37.809969,144.963264 spn=-0.000018,-0.000014"
+								locationLabel:@"-37.809969, 144.963264"
+							   accuractyLabel:[NSString stringWithFormat:@"%f", kCLLocationAccuracyBest]];
 	
 	// Execute
 	[_formatter locationManager:nil didUpdateToLocation:location fromLocation:nil];
 {
 	// Setup
 	NSError * error = [self makeFakeErrorWithDescription:@"Some error description"];
-	[[(id)_mockDelegate expect] locationFormatter:_formatter
-						 didUpdateFormattedString:@"Location manager failed with error: Some error description"
-									locationLabel:@""
-								   accuractyLabel:@""];
+	[[_mockDelegate expect] locationFormatter:_formatter
+					 didUpdateFormattedString:@"Location manager failed with error: Some error description"
+								locationLabel:@""
+							   accuractyLabel:@""];
 	
 
 	// Execute