Skip to content

Add Unit Test Cases - #180

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

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

test: add unit test cases

81f07b3
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 4, 2026 in 1m 21s

Annotations

Check warning on line 320 in src/test/java/com/iemr/mmu/service/quickConsultation/QuickConsultationFlowTest.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=AaBr0e4lzdeVRICu9efg&open=AaBr0e4lzdeVRICu9efg&pullRequest=180

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

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

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

Check warning on line 32 in src/test/java/com/iemr/mmu/service/dataSyncActivity/DownloadDataFromServerImplTest.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_MMU-API&issues=AaBr0e4RzdeVRICu9efe&open=AaBr0e4RzdeVRICu9efe&pullRequest=180

Check warning on line 597 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=AaBr0e20zdeVRICu9eey&open=AaBr0e20zdeVRICu9eey&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 620 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=AaBr0e1lzdeVRICu9eee&open=AaBr0e1lzdeVRICu9eee&pullRequest=180

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

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

Check warning on line 223 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=AaBr0e1lzdeVRICu9eeX&open=AaBr0e1lzdeVRICu9eeX&pullRequest=180

Check warning on line 534 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=AaBr0e20zdeVRICu9eeu&open=AaBr0e20zdeVRICu9eeu&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 30 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.mockito.ArgumentMatchers.eq'.

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

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

Check warning on line 611 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=AaBr0e3szdeVRICu9efJ&open=AaBr0e3szdeVRICu9efJ&pullRequest=180

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

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

Check warning on line 378 in src/test/java/com/iemr/mmu/service/quickConsultation/QuickConsultationFlowTest.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=AaBr0e4lzdeVRICu9efj&open=AaBr0e4lzdeVRICu9efj&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 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 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 96 in src/test/java/com/iemr/mmu/utils/JwtUserIdValidationFilterTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace these 3 tests with a single Parameterized one.

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

Check warning on line 509 in src/test/java/com/iemr/mmu/service/common/transaction/CommonServiceImplTest.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=AaBr0e2BzdeVRICu9eel&open=AaBr0e2BzdeVRICu9eel&pullRequest=180

Check warning on line 383 in src/test/java/com/iemr/mmu/service/quickConsultation/QuickConsultationFlowTest.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=AaBr0e4lzdeVRICu9efk&open=AaBr0e4lzdeVRICu9efk&pullRequest=180