Skip to content

Add unit test cases - #152

Open
vanitha1822 wants to merge 1 commit into
mainfrom
nd/vs/test_case
Open

vanitha1822 wants to merge 1 commit into
mainfrom
nd/vs/test_case

test: add unit test cases

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

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/uom/UomServiceImplTest.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=AaDoJyWrs0MU5LNv22Vv&open=AaDoJyWrs0MU5LNv22Vv&pullRequest=152

Check warning on line 69 in src/test/java/com/iemr/admin/service/facilitytype/M_facilitytypeServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 152 in src/test/java/com/iemr/admin/service/stockEntry/StockEntryServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "never".

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

Check warning on line 165 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_CommunityRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

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

Check warning on line 236 in src/test/java/com/iemr/admin/service/user/IemrUserServiceImplTest.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=AaDoJyZCs0MU5LNv22WE&open=AaDoJyZCs0MU5LNv22WE&pullRequest=152

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=AaDoJyWIs0MU5LNv22Vs&open=AaDoJyWIs0MU5LNv22Vs&pullRequest=152

Check warning on line 65 in src/test/java/com/iemr/admin/controller/itemfacilitymapping/MItemFacilityMappingControllerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 142 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=AaDoJyhCs0MU5LNv22Xf&open=AaDoJyhCs0MU5LNv22Xf&pullRequest=152

Check warning on line 61 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_InstitutedirectorymappingInter" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

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

Check warning on line 169 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_InstitutionRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

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

Check warning on line 216 in src/test/java/com/iemr/admin/service/bulkRegistration/BulkRegistrationServiceImplTest.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=AaDoJyYOs0MU5LNv22V9&open=AaDoJyYOs0MU5LNv22V9&pullRequest=152

Check warning on line 72 in src/test/java/com/iemr/admin/service/facilitytype/M_facilitytypeServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 206 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=AaDoJyhCs0MU5LNv22Xl&open=AaDoJyhCs0MU5LNv22Xl&pullRequest=152

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=AaDoJyZUs0MU5LNv22WH&open=AaDoJyZUs0MU5LNv22WH&pullRequest=152

Check warning on line 194 in src/test/java/com/iemr/admin/service/telemedicine/VideoConsultationAPIServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNull instead.

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

Check warning on line 70 in src/test/java/com/iemr/admin/service/itemfacilitymapping/M_itemfacilitymappingImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 108 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=AaDoJyhCs0MU5LNv22Xc&open=AaDoJyhCs0MU5LNv22Xc&pullRequest=152

Check warning on line 100 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 "serviceProvider_ServiceImpl" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

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

Check warning on line 117 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=AaDoJyhCs0MU5LNv22Xd&open=AaDoJyhCs0MU5LNv22Xd&pullRequest=152

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=AaDoJyZqs0MU5LNv22WI&open=AaDoJyZqs0MU5LNv22WI&pullRequest=152

Check warning on line 275 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=AaDoJyhCs0MU5LNv22Xq&open=AaDoJyhCs0MU5LNv22Xq&pullRequest=152

Check warning on line 79 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_FeedbacktypeInter" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

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

Check warning on line 63 in src/test/java/com/iemr/admin/controller/supplier/SupplierMasterControllerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this method to not match a restricted identifier.

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

Check warning on line 124 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=AaDoJyh1s0MU5LNv22X0&open=AaDoJyh1s0MU5LNv22X0&pullRequest=152

Check warning on line 88 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_ProviderservicemappingdetailRepo" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

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