Skip to content

Add Unit Test Cases - #147

Open
vanitha1822 wants to merge 1 commit into
release-3.8.2from
nd/vs/unit_test
Open

Add Unit Test Cases#147
vanitha1822 wants to merge 1 commit into
release-3.8.2from
nd/vs/unit_test

test: add unit test cases

b45a485
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Sep 8, 2026 in 50s

Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 81 in src/test/java/com/iemr/admin/service/supplier/SupplierServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this variable to not match a restricted identifier.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpErjJX6Qd9KSKXO&open=AaCAVpErjJX6Qd9KSKXO&pullRequest=147

Check warning on line 135 in src/test/java/com/iemr/admin/utils/gateway/email/GenericEmailServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVptwjJX6Qd9KSKZX&open=AaCAVptwjJX6Qd9KSKZX&pullRequest=147

Check warning on line 169 in src/test/java/com/iemr/admin/service/user/EncryptUserPasswordTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpZwjJX6Qd9KSKXp&open=AaCAVpZwjJX6Qd9KSKXp&pullRequest=147

Check warning on line 126 in src/test/java/com/iemr/admin/service/employeemaster/EmployeeMasterServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "m_UserDemographicsRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpaFjJX6Qd9KSKXq&open=AaCAVpaFjJX6Qd9KSKXq&pullRequest=147

Check warning on line 271 in src/test/java/com/iemr/admin/controller/employeemaster/AshaSupervisorMappingControllerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "doThrow".

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpoRjJX6Qd9KSKYf&open=AaCAVpoRjJX6Qd9KSKYf&pullRequest=147

Check warning on line 188 in src/test/java/com/iemr/admin/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpqDjJX6Qd9KSKZF&open=AaCAVpqDjJX6Qd9KSKZF&pullRequest=147

Check warning on line 48 in src/test/java/com/iemr/admin/utils/JwtUtilTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.ArgumentMatchers.anyString'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpp4jJX6Qd9KSKY1&open=AaCAVpp4jJX6Qd9KSKY1&pullRequest=147

Check warning on line 79 in src/test/java/com/iemr/admin/service/blocking/BlockingServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "t_UserDetailRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpfcjJX6Qd9KSKYF&open=AaCAVpfcjJX6Qd9KSKYF&pullRequest=147

Check warning on line 285 in src/test/java/com/iemr/admin/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpqDjJX6Qd9KSKZN&open=AaCAVpqDjJX6Qd9KSKZN&pullRequest=147

Check warning on line 51 in src/test/java/com/iemr/admin/utils/JwtUtilTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.Mockito.verify'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpp4jJX6Qd9KSKY4&open=AaCAVpp4jJX6Qd9KSKY4&pullRequest=147

Check warning on line 102 in src/test/java/com/iemr/admin/service/employeemaster/EmployeeMasterSupportServicesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "m_DesignationRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpaVjJX6Qd9KSKX-&open=AaCAVpaVjJX6Qd9KSKX-&pullRequest=147

Check warning on line 83 in src/test/java/com/iemr/admin/data/BeanContract.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotEquals instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpt4jJX6Qd9KSKZZ&open=AaCAVpt4jJX6Qd9KSKZZ&pullRequest=147

Check warning on line 80 in src/test/java/com/iemr/admin/utils/gateway/email/GenericEmailServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVptwjJX6Qd9KSKZT&open=AaCAVptwjJX6Qd9KSKZT&pullRequest=147

Check warning on line 164 in src/test/java/com/iemr/admin/service/store/StoreServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "times".

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpU-jJX6Qd9KSKXY&open=AaCAVpU-jJX6Qd9KSKXY&pullRequest=147

Check warning on line 92 in src/test/java/com/iemr/admin/utils/gateway/email/GenericEmailServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVptwjJX6Qd9KSKZU&open=AaCAVptwjJX6Qd9KSKZU&pullRequest=147

Check warning on line 47 in src/test/java/com/iemr/admin/utils/JwtUtilTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.ArgumentMatchers.anyLong'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpp4jJX6Qd9KSKY0&open=AaCAVpp4jJX6Qd9KSKY0&pullRequest=147

Check warning on line 84 in src/test/java/com/iemr/admin/service/rolemaster/RoleMasterServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "m_ScreenRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpj3jJX6Qd9KSKYP&open=AaCAVpj3jJX6Qd9KSKYP&pullRequest=147

Check warning on line 90 in src/test/java/com/iemr/admin/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpqDjJX6Qd9KSKY8&open=AaCAVpqDjJX6Qd9KSKY8&pullRequest=147

Check warning on line 67 in src/test/java/com/iemr/admin/controller/provideronboard/ProviderOnBoardFixture.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "m_InstitutionInter" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpkNjJX6Qd9KSKYT&open=AaCAVpkNjJX6Qd9KSKYT&pullRequest=147

Check warning on line 68 in src/test/java/com/iemr/admin/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpqDjJX6Qd9KSKY6&open=AaCAVpqDjJX6Qd9KSKY6&pullRequest=147

Check warning on line 222 in src/test/java/com/iemr/admin/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpqDjJX6Qd9KSKZJ&open=AaCAVpqDjJX6Qd9KSKZJ&pullRequest=147

Check warning on line 157 in src/test/java/com/iemr/admin/service/provideronboard/ProviderOnBoardServicesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "m_InstitutedirectorymappingRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVo_UjJX6Qd9KSKXB&open=AaCAVo_UjJX6Qd9KSKXB&pullRequest=147

Check warning on line 47 in src/test/java/com/iemr/admin/service/servicePoint/ServicePointServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.ArgumentMatchers.anyString'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpamjJX6Qd9KSKYB&open=AaCAVpamjJX6Qd9KSKYB&pullRequest=147

Check warning on line 64 in src/test/java/com/iemr/admin/controller/provideronboard/ProviderOnBoardFixture.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "m_InstitutesubdirectoryInter" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVpkNjJX6Qd9KSKYS&open=AaCAVpkNjJX6Qd9KSKYS&pullRequest=147

Check warning on line 187 in src/test/java/com/iemr/admin/service/provideronboard/ProviderOnBoardServicesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "m_ServerityRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Admin-API&issues=AaCAVo_UjJX6Qd9KSKXF&open=AaCAVo_UjJX6Qd9KSKXF&pullRequest=147