Skip to content

Commit

Permalink
Clean up headers for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hideya committed Nov 13, 2015
1 parent 375c2f1 commit 281f790
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 214 deletions.
42 changes: 6 additions & 36 deletions LoopBack.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion LoopBack/LBInstallation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* @copyright (c) 2013 StrongLoop. All rights reserved.
*/

#import "LoopBack.h"
#import "LBPersistedModel.h"
#import "LBRESTAdapter.h"

@class LBInstallation;
@class LBInstallationRepository;
Expand Down
13 changes: 0 additions & 13 deletions LoopBackTests/LBContainerTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions LoopBackTests/LBContainerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
// Copyright (c) 2014 StrongLoop. All rights reserved.
//

#import "LBContainerTests.h"
#import <XCTest/XCTest.h>

#import "LBContainer.h"
#import "LBRESTAdapter.h"
#import "SLRemotingTestsUtils.h"

@interface LBContainerTests ()
@interface LBContainerTests : XCTestCase

@property (nonatomic) LBContainerRepository *repository;

Expand Down
13 changes: 0 additions & 13 deletions LoopBackTests/LBFileTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions LoopBackTests/LBFileTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
// Copyright (c) 2014 StrongLoop. All rights reserved.
//

#import "LBFileTests.h"
#import <XCTest/XCTest.h>

#import "LBFile.h"
#import "LBRESTAdapter.h"
#import "SLRemotingTestsUtils.h"

@interface LBFileTests ()
@interface LBFileTests : XCTestCase

@property (nonatomic) LBFileRepository *repository;

Expand Down
13 changes: 0 additions & 13 deletions LoopBackTests/LBInstallationTests.h

This file was deleted.

9 changes: 3 additions & 6 deletions LoopBackTests/LBInstallationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@
// Copyright (c) 2013 StrongLoop. All rights reserved.
//

#import "LBInstallationTests.h"
#import <XCTest/XCTest.h>

#import "LBModel.h"
#import "LBRESTAdapter.h"
#import "LBInstallation.h"
#import "SLRemotingTestsUtils.h"

static id lastId = nil;

@interface LBInstallationTests()

+ (id)defaultTestSuite;
@interface LBInstallationTests : XCTestCase

@property (nonatomic) LBInstallationRepository *repository;
@property (nonatomic) NSData *testToken;
Expand Down
12 changes: 0 additions & 12 deletions LoopBackTests/LBModelTests.h

This file was deleted.

4 changes: 2 additions & 2 deletions LoopBackTests/LBModelTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// Copyright (c) 2015 StrongLoop. All rights reserved.
//

#import "LBModelTests.h"
#import <XCTest/XCTest.h>

#import "LBModel.h"
#import "LBRESTAdapter.h"

@interface LBModelTests()
@interface LBModelTests : XCTestCase

@property (nonatomic) LBModelRepository *repository;

Expand Down
13 changes: 0 additions & 13 deletions LoopBackTests/LBPersistedModelSubclassingTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions LoopBackTests/LBPersistedModelSubclassingTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
// Copyright (c) 2013 StrongLoop. All rights reserved.
//

#import "LBPersistedModelSubclassingTests.h"
#import <XCTest/XCTest.h>

#import "LBPersistedModel.h"
#import "LBRESTAdapter.h"
#import "SLRemotingTestsUtils.h"

static NSNumber *lastId;

Expand Down Expand Up @@ -43,7 +44,7 @@ + (instancetype)repository {

@end

@interface LBPersistedModelSubclassingTests()
@interface LBPersistedModelSubclassingTests : XCTestCase

@property (nonatomic) WidgetRepository *repository;

Expand Down
13 changes: 0 additions & 13 deletions LoopBackTests/LBPersistedModelTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions LoopBackTests/LBPersistedModelTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
// Copyright (c) 2013 StrongLoop. All rights reserved.
//

#import "LBPersistedModelTests.h"
#import <XCTest/XCTest.h>

#import "LBPersistedModel.h"
#import "LBRESTAdapter.h"
#import "SLRemotingTestsUtils.h"

static NSNumber *lastId;

@interface LBPersistedModelTests()
@interface LBPersistedModelTests : XCTestCase

@property (nonatomic) LBPersistedModelRepository *repository;

Expand Down
13 changes: 0 additions & 13 deletions LoopBackTests/LBUserTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions LoopBackTests/LBUserTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
// Copyright (c) 2014 StrongLoop. All rights reserved.
//

#import "LBUserTests.h"
#import <XCTest/XCTest.h>

#import "LBUser.h"
#import "LBRESTAdapter.h"
#import "SLRemotingTestsUtils.h"

static NSString * const DEFAULTS_CURRENT_USER_ID_KEY = @"LBUserRepositoryCurrentUserId";
static NSString * const USER_EMAIL_DOMAIN = @"@test.com";
Expand Down Expand Up @@ -44,7 +45,7 @@ + (instancetype)repository {
@end


@interface LBUserTests ()
@interface LBUserTests : XCTestCase

@property (nonatomic, strong) LBRESTAdapter *adapter;
@property (nonatomic, strong) CustomerRepository *repository;
Expand Down
1 change: 0 additions & 1 deletion SLRemoting/SLRESTAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @copyright (c) 2013 StrongLoop. All rights reserved.
*/

#import "SLRemotingUtils.h"
#import "SLAdapter.h"
#import "SLRESTContract.h"

Expand Down
1 change: 0 additions & 1 deletion SLRemoting/SLRemoting.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#ifndef __SL_REMOTING_H
#define __SL_REMOTING_H

#import "SLRemotingUtils.h"
#import "SLAdapter.h"
#import "SLRESTAdapter.h"
#import "SLRESTContract.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file SLRemotingUtils.h
* @file SLRemotingTestsUtils.h
*
* @author Michael Schoonmaker
* @copyright (c) 2013 StrongLoop. All rights reserved.
Expand Down Expand Up @@ -30,10 +30,3 @@
XCTFail(@"Test failed: %@", error.description); \
[expectation fulfill]; \
}

/**
* A container for helper methods.
*/
@interface SLRemotingUtils : NSObject

@end
12 changes: 0 additions & 12 deletions SLRemoting/SLRemotingUtils.m

This file was deleted.

13 changes: 0 additions & 13 deletions SLRemotingTests/SLRESTAdapterNonRootTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions SLRemotingTests/SLRESTAdapterNonRootTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
// Copyright (c) 2013 StrongLoop. All rights reserved.
//

#import "SLRESTAdapterNonRootTests.h"
#import <XCTest/XCTest.h>

#import "SLRESTAdapter.h"
#import "SLObject.h"
#import "SLRemotingTestsUtils.h"

@interface SLRESTAdapterNonRootTests() {
@interface SLRESTAdapterNonRootTests : XCTestCase {
SLRESTAdapter *adapter;
}

Expand Down
5 changes: 3 additions & 2 deletions SLRemotingTests/SLRESTAdapterSSLTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
// Copyright (c) 2013 StrongLoop. All rights reserved.
//

#import "SLRESTAdapterTests.h"
#import <XCTest/XCTest.h>

#import "SLRESTAdapter.h"
#import "SLObject.h"
#import "SLRemotingTestsUtils.h"

@interface SLRESTAdapterSSLTests : SLRESTAdapterTests {
@interface SLRESTAdapterSSLTests : XCTestCase {
SLRESTAdapter *adapter;
SLRepository *TestClass;
}
Expand Down
13 changes: 0 additions & 13 deletions SLRemotingTests/SLRESTAdapterTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions SLRemotingTests/SLRESTAdapterTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
// Copyright (c) 2013 StrongLoop. All rights reserved.
//

#import "SLRESTAdapterTests.h"
#import <XCTest/XCTest.h>

#import "SLRESTAdapter.h"
#import "SLObject.h"
#import "SLRemotingTestsUtils.h"

@interface SLRESTAdapterTests() {
@interface SLRESTAdapterTests : XCTestCase {
SLRESTAdapter *adapter;
SLRepository *TestClass;
}
Expand Down
13 changes: 0 additions & 13 deletions SLRemotingTests/SLRESTContractTests.h

This file was deleted.

5 changes: 3 additions & 2 deletions SLRemotingTests/SLRESTContractTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
// Copyright (c) 2013 StrongLoop. All rights reserved.
//

#import "SLRESTContractTests.h"
#import <XCTest/XCTest.h>

#import "SLRESTAdapter.h"
#import "SLObject.h"
#import "SLRemotingTestsUtils.h"

static NSString * const SERVER_URL = @"http://localhost:3001";

@interface SLRESTContractTests() {
@interface SLRESTContractTests : XCTestCase {
SLRESTAdapter *adapter;
SLRepository *TestClass;
}
Expand Down

0 comments on commit 281f790

Please sign in to comment.