Skip to content

Commit 18cc5aa

Browse files
authored
Merge pull request #1328 from BranchMetrics/SDK-2093-remove-OCMock
SDK-2093 remove oc mock
2 parents 16bbc63 + bf6e9ee commit 18cc5aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2262
-2813
lines changed

.github/workflows/verify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
# This happens automatically with the unit_tests lane, but adding it here
3232
# makes it easier to keep track of installation time via GHA without
3333
# adding execution time to the next step.
34-
- name: Install CocoaPods dependencies
35-
run: bundle exec fastlane prepare_pods
34+
#- name: Install CocoaPods dependencies
35+
# run: bundle exec fastlane prepare_pods
3636
- name: Run unit tests
3737
run: bundle exec fastlane unit_tests
3838
- name: Upload test results

Branch-TestBed/Branch-SDK-Tests/BNCApplication.Test.m renamed to Branch-TestBed/Branch-SDK-Tests/BNCApplicationTests.m

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@
66
// Copyright © 2018 Branch, Inc. All rights reserved.
77
//
88

9-
#import "BNCTestCase.h"
9+
#import <XCTest/XCTest.h>
1010
#import "BNCApplication.h"
1111
#import "BNCKeyChain.h"
1212

13-
@interface BNCApplicationTest : BNCTestCase
13+
@interface BNCApplicationTests : XCTestCase
1414
@end
1515

16-
@implementation BNCApplicationTest
16+
@implementation BNCApplicationTests
17+
18+
- (void)setUp {
19+
// Put setup code here. This method is called before the invocation of each test method in the class.
20+
}
21+
22+
- (void)tearDown {
23+
// Put teardown code here. This method is called after the invocation of each test method in the class.
24+
}
1725

1826
- (void)testApplication {
1927
// Test general info:

Branch-TestBed/Branch-SDK-Tests/BNCCrashlyticsWrapper.Test.m renamed to Branch-TestBed/Branch-SDK-Tests/BNCCrashlyticsWrapperTests.m

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Copyright © 2017 Branch Metrics. All rights reserved.
77
//
88

9+
#import <XCTest/XCTest.h>
910
#import "BNCCrashlyticsWrapper.h"
10-
#import "BNCTestCase.h"
1111

1212
#pragma mark Crashlytics SDK Stand-In
1313

@@ -42,13 +42,20 @@ -(id)getCustomValueForKey:(NSString *)key {
4242

4343
#pragma mark - BNCCrashlyticsWrapperTest
4444

45-
@interface BNCCrashlyticsWrapperTest : BNCTestCase
45+
@interface BNCCrashlyticsWrapperTests : XCTestCase
4646
@end
4747

48-
@implementation BNCCrashlyticsWrapperTest
48+
@implementation BNCCrashlyticsWrapperTests
4949

50-
- (void) testSetValue {
50+
- (void)setUp {
51+
// Put setup code here. This method is called before the invocation of each test method in the class.
52+
}
53+
54+
- (void)tearDown {
55+
// Put teardown code here. This method is called after the invocation of each test method in the class.
56+
}
5157

58+
- (void)testSetValue {
5259
BNCCrashlyticsWrapper *wrapper = [BNCCrashlyticsWrapper wrapper];
5360
NSString *value = @"TestString";
5461
NSString *key = @"TestKey";

Branch-TestBed/Branch-SDK-Tests/BNCEncodingUtils.Test.m renamed to Branch-TestBed/Branch-SDK-Tests/BNCEncodingUtilsTests.m

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@
88

99
#import <XCTest/XCTest.h>
1010
#import "BNCEncodingUtils.h"
11-
#import "BNCTestCase.h"
1211

13-
@interface BNCEncodingUtilsTests : BNCTestCase
12+
@interface BNCEncodingUtilsTests : XCTestCase
1413
@end
1514

1615
@implementation BNCEncodingUtilsTests
1716

17+
- (void)setUp {
18+
// Put setup code here. This method is called before the invocation of each test method in the class.
19+
}
20+
21+
- (void)tearDown {
22+
// Put teardown code here. This method is called after the invocation of each test method in the class.
23+
}
24+
1825
#pragma mark - EncodeDictionaryToJsonString tests
1926

2027
- (void)testEncodeDictionaryToJsonStringWithExpectedParams {

Branch-TestBed/Branch-SDK-Tests/BNCLinkDataTests.m

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@
66
// Copyright (c) 2015 Branch Metrics. All rights reserved.
77
//
88

9-
#import "BNCTestCase.h"
9+
#import <XCTest/XCTest.h>
1010
#import "BNCLinkData.h"
1111

12-
@interface BNCLinkDataTests : BNCTestCase
12+
@interface BNCLinkDataTests : XCTestCase
1313
@end
1414

1515
@implementation BNCLinkDataTests
1616

17+
- (void)setUp {
18+
// Put setup code here. This method is called before the invocation of each test method in the class.
19+
}
20+
21+
- (void)tearDown {
22+
// Put teardown code here. This method is called after the invocation of each test method in the class.
23+
}
24+
1725
- (void)testBasicObjectHash {
1826
BNCLinkData *a = [[BNCLinkData alloc] init];
1927
BNCLinkData *b = [[BNCLinkData alloc] init];

Branch-TestBed/Branch-SDK-Tests/BNCLog.Test.m renamed to Branch-TestBed/Branch-SDK-Tests/BNCLogTests.m

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
@file BNCLog.Test.m
2+
@file BNCLogTests.m
33
@package BranchTests
44
@brief Tests for BNCLog.
55
@@ -10,22 +10,29 @@
1010

1111
#import <XCTest/XCTest.h>
1212
#import "BNCLog.h"
13-
#import "BNCTestCase.h"
1413

15-
@interface BNCLogTest : BNCTestCase
14+
@interface BNCLogTests : XCTestCase
1615
@end
1716

18-
@implementation BNCLogTest
17+
@implementation BNCLogTests
1918

20-
- (void) testLogLevelString {
19+
- (void)setUp {
20+
// Put setup code here. This method is called before the invocation of each test method in the class.
21+
}
22+
23+
- (void)tearDown {
24+
// Put teardown code here. This method is called after the invocation of each test method in the class.
25+
}
26+
27+
- (void)testLogLevelString {
2128
XCTAssertEqual(BNCLogLevelAll, BNCLogLevelFromString(@"BNCLogLevelAll"));
2229
XCTAssertEqual(BNCLogLevelDebugSDK, BNCLogLevelFromString(@"BNCLogLevelDebugSDK"));
2330
XCTAssertEqual(BNCLogLevelWarning, BNCLogLevelFromString(@"BNCLogLevelWarning"));
2431
XCTAssertEqual(BNCLogLevelNone, BNCLogLevelFromString(@"BNCLogLevelNone"));
2532
XCTAssertEqual(BNCLogLevelMax, BNCLogLevelFromString(@"BNCLogLevelMax"));
2633
}
2734

28-
- (void) testLogLevelEnum {
35+
- (void)testLogLevelEnum {
2936
XCTAssertEqualObjects(@"BNCLogLevelAll", BNCLogStringFromLogLevel(BNCLogLevelAll));
3037
XCTAssertEqualObjects(@"BNCLogLevelAll", BNCLogStringFromLogLevel(BNCLogLevelDebugSDK));
3138
XCTAssertEqualObjects(@"BNCLogLevelWarning", BNCLogStringFromLogLevel(BNCLogLevelWarning));

0 commit comments

Comments
 (0)