Skip to content

Commit 5eaf898

Browse files
committed
Cleanup useless asserts in tests.
1 parent 53c378f commit 5eaf898

6 files changed

+0
-15
lines changed

Tests/Unit/ObjectFilePersistenceControllerTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ - (void)testConstructors {
5757
controller = [PFObjectFilePersistenceController controllerWithDataSource:dataSource];
5858
XCTAssertNotNil(controller);
5959
XCTAssertEqual((id)controller.dataSource, dataSource);
60-
61-
PFAssertThrowsInconsistencyException([PFObjectFilePersistenceController new]);
6260
}
6361

6462
- (void)testLoadPersistentObject {

Tests/Unit/OfflineQueryControllerTests.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ - (void)testConstructors {
5454
XCTAssertEqual((id)offlineQueryController.coreDataSource, objectStoreProvider);
5555
}
5656

57-
- (void)testBadConstructor {
58-
id<PFCoreManagerDataSource> mockedProvider = PFStrictProtocolMock(@protocol(PFCoreManagerDataSource));
59-
XCTAssertThrows([(id)[PFOfflineQueryController alloc] initWithCommonDataSource:mockedProvider]);
60-
}
61-
6257
- (void)testFindObjectsLDS {
6358
id<PFCoreManagerDataSource> mockedProvider = PFStrictProtocolMock(@protocol(PFCoreManagerDataSource));
6459
id<PFPinningObjectStoreProvider> objectStoreProvider = PFStrictProtocolMock(@protocol(PFPinningObjectStoreProvider));

Tests/Unit/URLSessionCommandRunnerTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ - (void)testConstructors {
5151
XCTAssertEqualObjects(@"clientKey", commandRunner.clientKey);
5252
XCTAssertEqual(commandRunner.initialRetryDelay, PFCommandRunningDefaultRetryDelay);
5353
XCTAssertEqual(commandRunner.serverURL, url);
54-
55-
PFAssertThrowsInconsistencyException([PFURLSessionCommandRunner new]);
5654
}
5755

5856
- (void)testRunCommand {

Tests/Unit/URLSessionDataTaskDelegateTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ - (void)testConstructors {
3737
XCTAssertNotNil(delegate);
3838
XCTAssertEqual(mockedTask, delegate.dataTask);
3939
XCTAssertNotNil(delegate.resultTask);
40-
41-
PFAssertThrowsInconsistencyException([PFURLSessionJSONDataTaskDelegate new]);
4240
}
4341

4442
- (void)testCancel {

Tests/Unit/URLSessionTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ - (void)testConstructors {
8686
delegate:delegate];
8787
XCTAssertNotNil(session);
8888
XCTAssertEqual((id)session.delegate, delegate);
89-
90-
PFAssertThrowsInconsistencyException([PFURLSession new]);
9189
}
9290

9391
- (void)testPerformDataRequestSuccess {

Tests/Unit/URLSessionUploadTaskDelegateTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ - (void)testConstructors {
5454
XCTAssertNotNil(delegate);
5555
XCTAssertEqual(delegate.dataTask, mockedTask);
5656
XCTAssertNotNil(delegate.resultTask);
57-
58-
PFAssertThrowsInconsistencyException([PFURLSessionUploadTaskDelegate new]);
5957
}
6058

6159
- (void)testCancel {

0 commit comments

Comments
 (0)