Skip to content

Commit

Permalink
Remove Superfluous Code
Browse files Browse the repository at this point in the history
  • Loading branch information
dflems committed Aug 11, 2016
1 parent 15aba17 commit 577a3bb
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 109 deletions.
14 changes: 0 additions & 14 deletions SPTDataLoaderTests/NSDictionaryHeaderSizeTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ @interface NSDictionaryHeaderSizeTest : XCTestCase

@implementation NSDictionaryHeaderSizeTest

#pragma mark XCTestCase

- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark NSDictionaryHeaderSizeTest

- (void)testNoSizeForNonStringKeys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,9 @@ @implementation SPTDataLoaderCancellationTokenFactoryImplementationTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.cancellationTokenFactory = [SPTDataLoaderCancellationTokenFactoryImplementation new];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTCancellationTokenFactoryImplementationTest

- (void)testCreateCancellationToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,10 @@ @implementation SPTDataLoaderCancellationTokenImplementationTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.delegate = [SPTDataLoaderCancellationTokenDelegateMock new];
self.cancellationToken = [SPTDataLoaderCancellationTokenImplementation cancellationTokenImplementationWithDelegate:self.delegate cancelObject:nil];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTCancellationTokenImplementationTest

- (void)testCancel
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderFactoryTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,12 @@ @implementation SPTDataLoaderFactoryTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.delegate = [SPTDataLoaderRequestResponseHandlerDelegateMock new];
self.authoriserMock = [SPTDataLoaderAuthoriserMock new];
self.factory = [SPTDataLoaderFactory dataLoaderFactoryWithRequestResponseHandlerDelegate:self.delegate
authorisers:@[ self.authoriserMock ]];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderFactoryTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderRateLimiterTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,10 @@ @implementation SPTDataLoaderRateLimiterTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.requestsPerSecond = 10.0;
self.rateLimiter = [SPTDataLoaderRateLimiter rateLimiterWithDefaultRequestsPerSecond:self.requestsPerSecond];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderRateLimiterTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderRequestTaskHandlerTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ @implementation SPTDataLoaderRequestTaskHandlerTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.requestResponseHandler = [SPTDataLoaderRequestResponseHandlerMock new];
self.rateLimiter = [SPTDataLoaderRateLimiter rateLimiterWithDefaultRequestsPerSecond:10.0];
self.request = [SPTDataLoaderRequest requestWithURL:(NSURL * _Nonnull)[NSURL URLWithString:@"https://spclient.wg.spotify.com/thing"]
Expand All @@ -67,12 +66,6 @@ - (void)setUp
rateLimiter:self.rateLimiter];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderRequestOperationTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderRequestTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,10 @@ @implementation SPTDataLoaderRequestTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.URL = [NSURL URLWithString:@"https://spclient.wg.spotify.com/thingy"];
self.request = [SPTDataLoaderRequest requestWithURL:self.URL sourceIdentifier:nil];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderRequestTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderResolverAddressTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,9 @@ @implementation SPTDataLoaderResolverAddressTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.address = [SPTDataLoaderResolverAddress dataLoaderResolverAddressWithAddress:@"192.168.0.1"];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderResolverAddressTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderResolverTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,9 @@ @implementation SPTDataLoaderResolverTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.resolver = [SPTDataLoaderResolver new];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderResolverTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderResponseTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ @implementation SPTDataLoaderResponseTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.request = [SPTDataLoaderRequest requestWithURL:(NSURL * _Nonnull)[NSURL URLWithString:@"https://spclient.wg.spotify.com/thingy"]
sourceIdentifier:nil];
self.urlResponse = [[NSHTTPURLResponse alloc] initWithURL:self.request.URL
Expand All @@ -51,12 +50,6 @@ - (void)setUp
self.response = [SPTDataLoaderResponse dataLoaderResponseWithRequest:self.request response:self.urlResponse];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderResponseTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderServerTrustPolicyTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,10 @@ - (void)setUp
{
[super setUp];

// Put setup code here. This method is called before the invocation of each test method in the class.
NSDictionary<NSString *, NSArray<NSString *> *> *dictionary = @{ @"*.spotify.com": SPTDataLoaderServerTrustUnitSpotifyTestCertificatePaths() };
self.serverTrustPolicy = [SPTDataLoaderServerTrustPolicy policyWithHostsAndCertificatePaths:dictionary];
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderServerTrustPolicyTestFunctions

- (void)testGoogleServerTrustCertificatePathsNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderServiceTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ @implementation SPTDataLoaderServiceTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.rateLimiter = [SPTDataLoaderRateLimiter rateLimiterWithDefaultRequestsPerSecond:10.0];
self.resolver = [SPTDataLoaderResolver new];
self.service = [SPTDataLoaderService dataLoaderServiceWithUserAgent:@"Spotify Test 1.0"
Expand All @@ -79,12 +78,6 @@ - (void)setUp
self.service.session = self.session;
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderServiceTest

- (void)testNotNil
Expand Down
7 changes: 0 additions & 7 deletions SPTDataLoaderTests/SPTDataLoaderTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,12 @@ @implementation SPTDataLoaderTest
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.requestResponseHandlerDelegate = [SPTDataLoaderRequestResponseHandlerDelegateMock new];
self.dataLoader = [SPTDataLoader dataLoaderWithRequestResponseHandlerDelegate:self.requestResponseHandlerDelegate];
self.delegate = [SPTDataLoaderDelegateMock new];
self.dataLoader.delegate = self.delegate;
}

- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

#pragma mark SPTDataLoaderTest

- (void)testNotNil
Expand Down
11 changes: 0 additions & 11 deletions demo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@

@implementation ViewController

- (void)viewDidLoad
{
[super viewDidLoad];
}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

- (IBAction)logInButtonTouchedUpInside:(id)sender
{
NSURLComponents *accountsComponents = [NSURLComponents new];
Expand Down

0 comments on commit 577a3bb

Please sign in to comment.