Skip to content

Commit

Permalink
Fix connectedTests
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Mar 23, 2024
1 parent 5d77084 commit f710aba
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class DataCapturingServiceTest {
//TestUtils.oauthConfig(),
IgnoreEventsStrategy(),
testListener!!,
100
100,
CyfaceAuthenticator(context!!)
)
} catch (e: SetupException) {
throw IllegalStateException(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ class PingPongTest {
//TestUtils.oauthConfig(),
IgnoreEventsStrategy(),
testListener,
100
100,
CyfaceAuthenticator(context!!)
)
} catch (e: SetupException) {
throw IllegalStateException(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ internal class MockedUploader : Uploader {
metaData: RequestMetaData,
measurementId: Long,
file: File,
fileName: String,
progressListener: UploadProgressListener
): Result {
progressListener.updatedProgress(1.0f) // 100%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class SyncPerformerTest {
metaData: RequestMetaData,
measurementId: Long,
file: File,
fileName: String,
progressListener: UploadProgressListener
): Result {
throw UploadFailed(ConflictException("Test ConflictException"))
Expand Down

0 comments on commit f710aba

Please sign in to comment.