diff --git a/datacapturing/src/androidTest/java/de/cyface/datacapturing/DataCapturingServiceWithoutPermissionTest.java b/datacapturing/src/androidTest/java/de/cyface/datacapturing/DataCapturingServiceWithoutPermissionTest.java index 4311fa182..d99027bd6 100644 --- a/datacapturing/src/androidTest/java/de/cyface/datacapturing/DataCapturingServiceWithoutPermissionTest.java +++ b/datacapturing/src/androidTest/java/de/cyface/datacapturing/DataCapturingServiceWithoutPermissionTest.java @@ -92,8 +92,15 @@ public void setUp() { final DataCapturingListener listener = new TestListener(); InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { try { - oocut = new CyfaceDataCapturingService(context, TestUtils.AUTHORITY, TestUtils.ACCOUNT_TYPE, - /*dataUploadServerAddress, TestUtils.oauthConfig(),*/ new IgnoreEventsStrategy(), listener, 100); + oocut = new CyfaceDataCapturingService( + context, + TestUtils.AUTHORITY, + TestUtils.ACCOUNT_TYPE, + /*dataUploadServerAddress, TestUtils.oauthConfig(),*/ new IgnoreEventsStrategy(), + listener, + 100, + new CyfaceAuthenticator(context) + ); } catch (SetupException e) { throw new IllegalStateException(e); } diff --git a/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/DataCapturingServiceTest.kt b/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/DataCapturingServiceTest.kt index fdb6c6955..cc94b2bf6 100644 --- a/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/DataCapturingServiceTest.kt +++ b/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/DataCapturingServiceTest.kt @@ -138,7 +138,8 @@ class DataCapturingServiceTest { //TestUtils.oauthConfig(), IgnoreEventsStrategy(), testListener!!, - 100 + 100, + CyfaceAuthenticator(context!!) ) } catch (e: SetupException) { throw IllegalStateException(e) diff --git a/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/PingPongTest.kt b/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/PingPongTest.kt index 747c59777..df5779bff 100644 --- a/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/PingPongTest.kt +++ b/datacapturing/src/androidTest/kotlin/de/cyface/datacapturing/PingPongTest.kt @@ -150,7 +150,8 @@ class PingPongTest { //TestUtils.oauthConfig(), IgnoreEventsStrategy(), testListener, - 100 + 100, + CyfaceAuthenticator(context!!) ) } catch (e: SetupException) { throw IllegalStateException(e) diff --git a/synchronization/src/androidTest/kotlin/de/cyface/synchronization/MockedUploader.kt b/synchronization/src/androidTest/kotlin/de/cyface/synchronization/MockedUploader.kt index 123440b06..29c0a8ceb 100644 --- a/synchronization/src/androidTest/kotlin/de/cyface/synchronization/MockedUploader.kt +++ b/synchronization/src/androidTest/kotlin/de/cyface/synchronization/MockedUploader.kt @@ -66,6 +66,7 @@ internal class MockedUploader : Uploader { metaData: RequestMetaData, measurementId: Long, file: File, + fileName: String, progressListener: UploadProgressListener ): Result { progressListener.updatedProgress(1.0f) // 100% diff --git a/synchronization/src/androidTest/kotlin/de/cyface/synchronization/SyncPerformerTest.kt b/synchronization/src/androidTest/kotlin/de/cyface/synchronization/SyncPerformerTest.kt index f36f633a0..382ae7358 100644 --- a/synchronization/src/androidTest/kotlin/de/cyface/synchronization/SyncPerformerTest.kt +++ b/synchronization/src/androidTest/kotlin/de/cyface/synchronization/SyncPerformerTest.kt @@ -311,6 +311,7 @@ class SyncPerformerTest { metaData: RequestMetaData, measurementId: Long, file: File, + fileName: String, progressListener: UploadProgressListener ): Result { throw UploadFailed(ConflictException("Test ConflictException"))