Skip to content

Add Unit Test Cases - #180

Open
vanitha1822 wants to merge 5 commits into
mainfrom
nd/vs/unit_test
Open

vanitha1822 wants to merge 5 commits into
mainfrom
nd/vs/unit_test

Merge remote-tracking branch 'origin' into nd/vs/unit_test

46bb05a
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 28, 2026 in 41s

Annotations

Check failure on line 331 in src/test/java/com/iemr/mmu/service/health/HealthServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e4wzdeVRICu9efo&open=AaBr0e4wzdeVRICu9efo&pullRequest=180

Check warning on line 28 in src/test/java/com/iemr/mmu/utils/exception/SecurityExceptionHandlersTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.io.PrintWriter'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e5fzdeVRICu9ef3&open=AaBr0e5fzdeVRICu9ef3&pullRequest=180

Check warning on line 25 in src/test/java/com/iemr/mmu/service/reports/ReportCheckPostImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.api.Assertions.assertNotNull'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e13zdeVRICu9eeh&open=AaBr0e13zdeVRICu9eeh&pullRequest=180

Check warning on line 558 in src/test/java/com/iemr/mmu/service/covid19/Covid19ServiceImplTest.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_MMU-API&issues=AaBr0e0YzdeVRICu9eeT&open=AaBr0e0YzdeVRICu9eeT&pullRequest=180

Check warning on line 28 in src/test/java/com/iemr/mmu/service/health/HealthServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e4wzdeVRICu9efp&open=AaBr0e4wzdeVRICu9efp&pullRequest=180

Check warning on line 27 in src/test/java/com/iemr/mmu/utils/http/HttpUtilsAndInterceptorTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.api.Assertions.assertThrows'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e5yzdeVRICu9egA&open=AaBr0e5yzdeVRICu9egA&pullRequest=180

Check warning on line 537 in src/test/java/com/iemr/mmu/service/pnc/PNCServiceImplTest.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_MMU-API&issues=AaBr0e20zdeVRICu9eev&open=AaBr0e20zdeVRICu9eev&pullRequest=180

Check warning on line 527 in src/test/java/com/iemr/mmu/service/ncdCare/NCDCareServiceImplTest.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_MMU-API&issues=AaBr0e3_zdeVRICu9efZ&open=AaBr0e3_zdeVRICu9efZ&pullRequest=180

Check warning on line 31 in src/test/java/com/iemr/mmu/utils/redis/RedisStorageTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e5ozdeVRICu9ef-&open=AaBr0e5ozdeVRICu9ef-&pullRequest=180

Check failure on line 2184 in src/test/java/com/iemr/mmu/service/common/transaction/CommonNurseServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e2TzdeVRICu9eeq&open=AaBr0e2TzdeVRICu9eeq&pullRequest=180

Check warning on line 35 in src/test/java/com/iemr/mmu/service/dataSyncLayerCentral/GetDataFromVanAndSyncToDBImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.util.HashMap'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e3izdeVRICu9efD&open=AaBr0e3izdeVRICu9efD&pullRequest=180

Check warning on line 25 in src/test/java/com/iemr/mmu/service/dataSyncLayerCentral/GetDataFromVanAndSyncToDBImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.api.Assertions.assertFalse'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e3izdeVRICu9efB&open=AaBr0e3izdeVRICu9efB&pullRequest=180

Check warning on line 40 in src/test/java/com/iemr/mmu/service/pnc/PNCServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.util.List'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e20zdeVRICu9ee3&open=AaBr0e20zdeVRICu9ee3&pullRequest=180

Check warning on line 234 in src/test/java/com/iemr/mmu/service/ncdscreening/NCDScreeningNurseAndDoctorServiceTest.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_MMU-API&issues=AaBr0e31zdeVRICu9efO&open=AaBr0e31zdeVRICu9efO&pullRequest=180

Check failure on line 1689 in src/test/java/com/iemr/mmu/service/common/transaction/CommonNurseServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e2TzdeVRICu9eep&open=AaBr0e2TzdeVRICu9eep&pullRequest=180

Check warning on line 30 in src/test/java/com/iemr/mmu/service/dataSyncLayerCentral/DataSyncRepositoryCentralQueryTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e3YzdeVRICu9ee_&open=AaBr0e3YzdeVRICu9ee_&pullRequest=180

Check warning on line 613 in src/test/java/com/iemr/mmu/service/cancerScreening/CSServiceImplTest.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_MMU-API&issues=AaBr0e1lzdeVRICu9eed&open=AaBr0e1lzdeVRICu9eed&pullRequest=180

Check warning on line 620 in src/test/java/com/iemr/mmu/service/pnc/PNCServiceImplTest.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_MMU-API&issues=AaBr0e20zdeVRICu9eez&open=AaBr0e20zdeVRICu9eez&pullRequest=180

Check warning on line 589 in src/test/java/com/iemr/mmu/service/pnc/PNCServiceImplTest.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_MMU-API&issues=AaBr0e20zdeVRICu9eew&open=AaBr0e20zdeVRICu9eew&pullRequest=180

Check warning on line 37 in src/test/java/com/iemr/mmu/service/registrar/RegistrarServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.util.Collections'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e4czdeVRICu9eff&open=AaBr0e4czdeVRICu9eff&pullRequest=180

Check warning on line 152 in src/test/java/com/iemr/mmu/utils/mapper/RoleAuthenticationFilterTest.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_MMU-API&issues=AaBr0e45zdeVRICu9efq&open=AaBr0e45zdeVRICu9efq&pullRequest=180

Check warning on line 26 in src/test/java/com/iemr/mmu/utils/config/ConfigPropertiesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.api.Assertions.assertNotNull'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e5LzdeVRICu9efv&open=AaBr0e5LzdeVRICu9efv&pullRequest=180

Check warning on line 38 in src/test/java/com/iemr/mmu/service/ncdscreening/NCDScreeningNurseAndDoctorServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.util.List'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_MMU-API&issues=AaBr0e31zdeVRICu9efQ&open=AaBr0e31zdeVRICu9efQ&pullRequest=180

Check warning on line 593 in src/test/java/com/iemr/mmu/service/pnc/PNCServiceImplTest.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_MMU-API&issues=AaBr0e20zdeVRICu9eex&open=AaBr0e20zdeVRICu9eex&pullRequest=180

Check warning on line 162 in src/test/java/com/iemr/mmu/service/ncdscreening/NCDScreeningServiceImplTest.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_MMU-API&issues=AaBr0e3szdeVRICu9efE&open=AaBr0e3szdeVRICu9efE&pullRequest=180