diff --git a/app/src/test/java/org/dhis2/usescases/settings/SettingsRepositoryTest.kt b/app/src/test/java/org/dhis2/usescases/settings/SettingsRepositoryTest.kt index 2692d0cb83..4ffc7aa623 100644 --- a/app/src/test/java/org/dhis2/usescases/settings/SettingsRepositoryTest.kt +++ b/app/src/test/java/org/dhis2/usescases/settings/SettingsRepositoryTest.kt @@ -383,15 +383,15 @@ class SettingsRepositoryTest { } private fun configureSMSConfig() { - whenever(localDbRepository.isModuleEnabled) doReturn + whenever(localDbRepository.isModuleEnabled()) doReturn Single.just(true) - whenever(localDbRepository.gatewayNumber) doReturn + whenever(localDbRepository.getGatewayNumber()) doReturn Single.just("gatewaynumber") - whenever(localDbRepository.waitingForResultEnabled) doReturn + whenever(localDbRepository.getWaitingForResultEnabled()) doReturn Single.just(true) - whenever(localDbRepository.confirmationSenderNumber) doReturn + whenever(localDbRepository.getConfirmationSenderNumber()) doReturn Single.just("confirmationNumber") - whenever(localDbRepository.waitingResultTimeout) doReturn + whenever(localDbRepository.getWaitingResultTimeout()) doReturn Single.just(120) whenever(d2.smsModule().configCase()) doReturn ConfigCase( diff --git a/app/src/test/java/org/dhis2/utils/granularsync/SMSSyncProviderTest.kt b/app/src/test/java/org/dhis2/utils/granularsync/SMSSyncProviderTest.kt index 4ef326da74..9c1bd98c41 100644 --- a/app/src/test/java/org/dhis2/utils/granularsync/SMSSyncProviderTest.kt +++ b/app/src/test/java/org/dhis2/utils/granularsync/SMSSyncProviderTest.kt @@ -233,7 +233,7 @@ class SMSSyncProviderTest { d2.smsModule().configCase(), ) doReturn mock() whenever( - d2.smsModule().configCase().smsModuleConfig, + d2.smsModule().configCase().getSmsModuleConfig(), ) doReturn Single.just(smsConfig) } @@ -298,7 +298,7 @@ class SMSSyncProviderTest { d2.smsModule().configCase(), ) doReturn mock() whenever( - d2.smsModule().configCase().smsModuleConfig, + d2.smsModule().configCase().getSmsModuleConfig(), ) doReturn Single.just(smsConfig) } }