Skip to content

Add the Unit Test Cases - #161

Open
vanitha1822 wants to merge 3 commits into
mainfrom
nd/vs/test_cases
Open

vanitha1822 wants to merge 3 commits into
mainfrom
nd/vs/test_cases

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

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

Quality Gate failed

Failed conditions
D 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 95 in src/test/java/com/iemr/tm/service/benFlowStatus/CommonBenStatusFlowServiceImplTest.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_TM-API&issues=AaBBvUD3Mr8Oltru-QeL&open=AaBBvUD3Mr8Oltru-QeL&pullRequest=161

Check warning on line 28 in src/test/java/com/iemr/tm/utils/mapper/InputMapperTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'java.text.ParseException'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AaBBvT23Mr8Oltru-QXc&open=AaBBvT23Mr8Oltru-QXc&pullRequest=161

Check failure on line 42 in src/test/java/com/iemr/tm/repo/location/ZoneDistrictMappingTest.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_TM-API&issues=AaBBvUH4Mr8Oltru-Qlb&open=AaBBvUH4Mr8Oltru-Qlb&pullRequest=161

Check warning on line 709 in src/test/java/com/iemr/tm/service/anc/ANCServiceImplTest.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_TM-API&issues=AaBBvT-HMr8Oltru-QYJ&open=AaBBvT-HMr8Oltru-QYJ&pullRequest=161

Check warning on line 144 in src/test/java/com/iemr/tm/service/registrar/RegistrarServiceImplTest.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_TM-API&issues=AaBBvUEfMr8Oltru-QfO&open=AaBBvUEfMr8Oltru-QfO&pullRequest=161

Check warning on line 425 in src/test/java/com/iemr/tm/service/quickConsultation/QuickConsultationServiceImplTest.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_TM-API&issues=AaBBvUEtMr8Oltru-Qgw&open=AaBBvUEtMr8Oltru-Qgw&pullRequest=161

Check warning on line 89 in src/test/java/com/iemr/tm/service/benFlowStatus/CommonBenStatusFlowServiceImplTest.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_TM-API&issues=AaBBvUD3Mr8Oltru-QeK&open=AaBBvUD3Mr8Oltru-QeK&pullRequest=161

Check warning on line 66 in src/test/java/com/iemr/tm/service/common/master/NCDScreeningMasterServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AaBBvT_RMr8Oltru-QYz&open=AaBBvT_RMr8Oltru-QYz&pullRequest=161

Check warning on line 199 in src/test/java/com/iemr/tm/controller/anc/AntenatalCareControllerTest.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_TM-API&issues=AaBBvUHlMr8Oltru-Qkw&open=AaBBvUHlMr8Oltru-Qkw&pullRequest=161

Check warning on line 247 in src/test/java/com/iemr/tm/controller/generalOPD/GeneralOPDControllerTest.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_TM-API&issues=AaBBvUG4Mr8Oltru-QkJ&open=AaBBvUG4Mr8Oltru-QkJ&pullRequest=161

Check warning on line 487 in src/test/java/com/iemr/tm/service/quickConsultation/QuickConsultationServiceImplTest.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_TM-API&issues=AaBBvUEtMr8Oltru-Qg4&open=AaBBvUEtMr8Oltru-Qg4&pullRequest=161

Check warning on line 137 in src/test/java/com/iemr/tm/controller/anc/AntenatalCareControllerTest.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_TM-API&issues=AaBBvUHlMr8Oltru-Qkp&open=AaBBvUHlMr8Oltru-Qkp&pullRequest=161

Check warning on line 123 in src/test/java/com/iemr/tm/service/quickConsultation/QuickConsultationServiceImplTest.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_TM-API&issues=AaBBvUEsMr8Oltru-QgE&open=AaBBvUEsMr8Oltru-QgE&pullRequest=161

Check warning on line 122 in src/test/java/com/iemr/tm/service/anc/ANCNurseServiceImplTest.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_TM-API&issues=AaBBvT-WMr8Oltru-QYa&open=AaBBvT-WMr8Oltru-QYa&pullRequest=161

Check warning on line 148 in src/test/java/com/iemr/tm/controller/quickconsult/QuickConsultControllerTest.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_TM-API&issues=AaBBvUF3Mr8Oltru-QjC&open=AaBBvUF3Mr8Oltru-QjC&pullRequest=161

Check warning on line 31 in src/test/java/com/iemr/tm/controller/registrar/main/RegistrarControllerTest.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_TM-API&issues=AaBBvUGIMr8Oltru-Qjg&open=AaBBvUGIMr8Oltru-Qjg&pullRequest=161

Check warning on line 117 in src/test/java/com/iemr/tm/service/cancerScreening/CSServiceImplTest.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_TM-API&issues=AaBBvUAWMr8Oltru-QZw&open=AaBBvUAWMr8Oltru-QZw&pullRequest=161

Check warning on line 543 in src/test/java/com/iemr/tm/controller/common/main/WorklistControllerTest.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_TM-API&issues=AaBBvUFbMr8Oltru-QiZ&open=AaBBvUFbMr8Oltru-QiZ&pullRequest=161

Check warning on line 615 in src/test/java/com/iemr/tm/service/generalOPD/GeneralOPDServiceImplTest.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_TM-API&issues=AaBBvUAzMr8Oltru-QbW&open=AaBBvUAzMr8Oltru-QbW&pullRequest=161

Check warning on line 104 in src/test/java/com/iemr/tm/service/anc/ANCNurseServiceImplTest.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_TM-API&issues=AaBBvT-WMr8Oltru-QYX&open=AaBBvT-WMr8Oltru-QYX&pullRequest=161

Check warning on line 164 in src/test/java/com/iemr/tm/service/common/master/ANCMasterDataServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-API&issues=AaBBvT-yMr8Oltru-QYt&open=AaBBvT-yMr8Oltru-QYt&pullRequest=161

Check warning on line 199 in src/test/java/com/iemr/tm/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_TM-API&issues=AaBBvUB3Mr8Oltru-Qbs&open=AaBBvUB3Mr8Oltru-Qbs&pullRequest=161

Check warning on line 567 in src/test/java/com/iemr/tm/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_TM-API&issues=AaBBvUCeMr8Oltru-Qce&open=AaBBvUCeMr8Oltru-Qce&pullRequest=161

Check warning on line 331 in src/test/java/com/iemr/tm/controller/cancerscreening/CancerScreeningControllerTest.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_TM-API&issues=AaBBvUHvMr8Oltru-QlJ&open=AaBBvUHvMr8Oltru-QlJ&pullRequest=161

Check warning on line 65 in src/test/java/com/iemr/tm/service/anc/ANCDoctorServiceImplTest.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_TM-API&issues=AaBBvT-OMr8Oltru-QYO&open=AaBBvT-OMr8Oltru-QYO&pullRequest=161