Files
RestKit/Tests/Models/RKTestAddress.m
Blake Watters 4142ffdb42 Reorganization and cleanups of Unit Tests
* Reorganized tests to accommodate split into Logic & Application.
* Eliminated 'Spec' naming in favor of 'Test' as the suite is entirely based on SenTest.
* Pulled majority of testing support classes up into the library and documented them.
* Introduced RKApplicationTests app for running the RKTableController UI tests
2012-02-10 17:32:23 -05:00

32 lines
695 B
Objective-C

//
// RKTestAddress.m
// RestKit
//
// Created by Blake Watters on 8/5/11.
// Copyright 2011 RestKit. All rights reserved.
//
#import "RKTestAddress.h"
@implementation RKTestAddress
@synthesize addressID = _addressID;
@synthesize city = _city;
@synthesize state = _state;
@synthesize country = _country;
+ (RKTestAddress*)address {
return [[self new] autorelease];
}
// isEqual: is consulted by the mapping operation
// to determine if assocation values should be set
- (BOOL)isEqual:(id)object {
if ([object isKindOfClass:[RKTestAddress class]]) {
return [[(RKTestAddress*)object addressID] isEqualToNumber:self.addressID];
} else {
return NO;
}
}
@end