Skip to content

Commit

Permalink
Fix in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 committed Feb 8, 2023
1 parent 1ff0761 commit 62a058d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class OCRemoteFileDataSourceTest {
ocFileService.checkPathExistence(OC_SERVER_INFO.baseUrl, true)
} returns checkPathExistenceRemoteResult

val checkPathExistence = ocRemoteFileDataSource.checkPathExistence(OC_SERVER_INFO.baseUrl, true, OC_ACCOUNT_NAME)
val checkPathExistence = ocRemoteFileDataSource.checkPathExistence(OC_SERVER_INFO.baseUrl, true, OC_ACCOUNT_NAME, null)

assertNotNull(checkPathExistence)
assertEquals(checkPathExistenceRemoteResult.data, checkPathExistence)
Expand All @@ -74,7 +74,7 @@ class OCRemoteFileDataSourceTest {
ocFileService.checkPathExistence(OC_SERVER_INFO.baseUrl, true)
} returns checkPathExistenceRemoteResult

val checkPathExistence = ocRemoteFileDataSource.checkPathExistence(OC_SERVER_INFO.baseUrl, true, OC_ACCOUNT_NAME)
val checkPathExistence = ocRemoteFileDataSource.checkPathExistence(OC_SERVER_INFO.baseUrl, true, OC_ACCOUNT_NAME, null)

assertNotNull(checkPathExistence)
assertEquals(checkPathExistenceRemoteResult.data, checkPathExistence)
Expand All @@ -88,7 +88,7 @@ class OCRemoteFileDataSourceTest {
ocFileService.checkPathExistence(OC_SERVER_INFO.baseUrl, true)
} throws Exception()

ocRemoteFileDataSource.checkPathExistence(OC_SERVER_INFO.baseUrl, true, OC_ACCOUNT_NAME)
ocRemoteFileDataSource.checkPathExistence(OC_SERVER_INFO.baseUrl, true, OC_ACCOUNT_NAME, null)
}

@Test
Expand Down

0 comments on commit 62a058d

Please sign in to comment.