Skip to content

Add the Unit Test Cases - #161

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

Add the Unit Test Cases#161
vanitha1822 wants to merge 1 commit into
release-3.9.0from
nd/vs/test_cases

fix: add the unit test cases

dda77cb
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Aug 27, 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 186 in src/test/java/com/iemr/tm/service/labtechnician/LabTechnicianServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 686 in src/test/java/com/iemr/tm/service/cancerScreening/CSServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 383 in src/test/java/com/iemr/tm/service/quickConsultation/QuickConsultationServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

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

Check warning on line 246 in src/test/java/com/iemr/tm/service/common/transaction/CommonServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 164 in src/test/java/com/iemr/tm/controller/ncdscreening/NCDScreeningControllerTest.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=AaBBvUGSMr8Oltru-Qjk&open=AaBBvUGSMr8Oltru-Qjk&pullRequest=161

Check warning on line 386 in src/test/java/com/iemr/tm/service/patientApp/master/CommonPatientAppMasterServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 71 in src/test/java/com/iemr/tm/service/dataSyncActivity/UploadDataToServerImplTest.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-nMr8Oltru-QYr&open=AaBBvT-nMr8Oltru-QYr&pullRequest=161

Check warning on line 686 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-Qip&open=AaBBvUFbMr8Oltru-Qip&pullRequest=161

Check warning on line 174 in src/test/java/com/iemr/tm/service/benFlowStatus/CommonBenStatusFlowServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 530 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-QiY&open=AaBBvUFbMr8Oltru-QiY&pullRequest=161

Check warning on line 589 in src/test/java/com/iemr/tm/service/cancerScreening/CSServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 186 in src/test/java/com/iemr/tm/controller/ncdCare/NCDCareControllerTest.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=AaBBvUGkMr8Oltru-Qj4&open=AaBBvUGkMr8Oltru-Qj4&pullRequest=161

Check warning on line 205 in src/test/java/com/iemr/tm/controller/pnc/PostnatalCareControllerTest.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=AaBBvUHKMr8Oltru-Qkd&open=AaBBvUHKMr8Oltru-Qkd&pullRequest=161

Check warning on line 362 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-QiF&open=AaBBvUFbMr8Oltru-QiF&pullRequest=161

Check warning on line 175 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 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=AaBBvUGIMr8Oltru-QjN&open=AaBBvUGIMr8Oltru-QjN&pullRequest=161

Check warning on line 134 in src/test/java/com/iemr/tm/service/location/LocationServiceImplTest.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=AaBBvUE4Mr8Oltru-QhK&open=AaBBvUE4Mr8Oltru-QhK&pullRequest=161

Check warning on line 115 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-Qi-&open=AaBBvUF3Mr8Oltru-Qi-&pullRequest=161

Check warning on line 514 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-QlY&open=AaBBvUHvMr8Oltru-QlY&pullRequest=161

Check failure on line 41 in src/test/java/com/iemr/tm/data/institution/DataInstitutionDataTest.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=AaBBvT8AMr8Oltru-QXz&open=AaBBvT8AMr8Oltru-QXz&pullRequest=161

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

Check warning on line 302 in src/test/java/com/iemr/tm/service/common/transaction/CommonServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 274 in src/test/java/com/iemr/tm/service/quickConsultation/QuickConsultationServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 280 in src/test/java/com/iemr/tm/controller/ncdscreening/NCDScreeningControllerTest.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=AaBBvUGSMr8Oltru-Qjv&open=AaBBvUGSMr8Oltru-Qjv&pullRequest=161

Check warning on line 362 in src/test/java/com/iemr/tm/service/patientApp/master/CommonPatientAppMasterServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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

Check warning on line 432 in src/test/java/com/iemr/tm/service/quickConsultation/QuickConsultationServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

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