From b0f0ee9a8b92fd014827576d5d6b7013c372f001 Mon Sep 17 00:00:00 2001 From: SebaMutuku <36365043+SebaMutuku@users.noreply.github.com> Date: Thu, 29 Sep 2022 16:54:15 +0300 Subject: [PATCH 1/3] saveProviderBaseEntityIdOnSharedPref --- gradle.properties | 2 +- .../java/org/smartregister/service/UserServiceTest.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 619c9fd36..772b3ba94 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=6.0.2-SNAPSHOT +VERSION_NAME=6.0.2-BETA-SNAPSHOT VERSION_CODE=1 GROUP=org.smartregister POM_SETTING_DESCRIPTION=OpenSRP Client Core Application diff --git a/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java b/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java index efb916d08..7a3eac984 100644 --- a/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java +++ b/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java @@ -373,5 +373,11 @@ public void testIsUserInPioneerGroupShouldReturnFalseForOthers() throws Exceptio assertFalse(userService.isUserInPioneerGroup("john")); } - + @Test + public void saveProviderBaseEntityIdOnSharedPref() { + String providerBaseEntityId = "00ab-88dc-ea11-8471-ad90"; + String providerName = "provider"; + userService.saveUserId(providerName, providerBaseEntityId); + Mockito.verify(userService).saveUserId(providerName, providerBaseEntityId); + } } \ No newline at end of file From b78c9d4b7638721218af92290ab308bc0e84ccdc Mon Sep 17 00:00:00 2001 From: SebaMutuku <36365043+SebaMutuku@users.noreply.github.com> Date: Thu, 29 Sep 2022 16:54:53 +0300 Subject: [PATCH 2/3] saveProviderBaseEntityIdOnSharedPref --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 772b3ba94..619c9fd36 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=6.0.2-BETA-SNAPSHOT +VERSION_NAME=6.0.2-SNAPSHOT VERSION_CODE=1 GROUP=org.smartregister POM_SETTING_DESCRIPTION=OpenSRP Client Core Application From 98031b733c3083df232aa5944d72da59fa8e6366 Mon Sep 17 00:00:00 2001 From: SebaMutuku <36365043+SebaMutuku@users.noreply.github.com> Date: Fri, 30 Sep 2022 11:13:57 +0300 Subject: [PATCH 3/3] Codacy updates --- .../test/java/org/smartregister/service/UserServiceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java b/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java index 7a3eac984..6bafa880a 100644 --- a/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java +++ b/opensrp-core/src/test/java/org/smartregister/service/UserServiceTest.java @@ -378,6 +378,6 @@ public void saveProviderBaseEntityIdOnSharedPref() { String providerBaseEntityId = "00ab-88dc-ea11-8471-ad90"; String providerName = "provider"; userService.saveUserId(providerName, providerBaseEntityId); - Mockito.verify(userService).saveUserId(providerName, providerBaseEntityId); + verify(userService).saveUserId(providerName, providerBaseEntityId); } } \ No newline at end of file