Skip to content

Add Unit Test Cases - #129

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

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

fix: merge with main

1410dcd
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 28, 2026 in 35s

Annotations

Check warning on line 185 in src/test/java/com/iemr/inventory/mapper/stockadjustment/StockAdjustmentItemDraftMapperTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotNull instead.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcOkCLWzfLSDudlG&open=AaDoGcOkCLWzfLSDudlG&pullRequest=129

Check warning on line 136 in src/test/java/com/iemr/inventory/utils/redis/RedisStorageTest.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_Inventory-API&issues=AaDoGcJVCLWzfLSDudk2&open=AaDoGcJVCLWzfLSDudk2&pullRequest=129

Check warning on line 66 in src/test/java/com/iemr/inventory/service/itemfacilitymapping/M_itemfacilitymappingImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcNBCLWzfLSDudk9&open=AaDoGcNBCLWzfLSDudk9&pullRequest=129

Check warning on line 48 in src/test/java/com/iemr/inventory/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_Inventory-API&issues=AaDoGcNLCLWzfLSDudk-&open=AaDoGcNLCLWzfLSDudk-&pullRequest=129

Check warning on line 34 in src/test/java/com/iemr/inventory/controller/version/VersionControllerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcOFCLWzfLSDudlD&open=AaDoGcOFCLWzfLSDudlD&pullRequest=129

Check warning on line 342 in src/test/java/com/iemr/inventory/service/health/HealthServiceTest.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_Inventory-API&issues=AaDoGcM2CLWzfLSDudk6&open=AaDoGcM2CLWzfLSDudk6&pullRequest=129

Check warning on line 192 in src/test/java/com/iemr/inventory/support/BeanAccessorHarness.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Swap these 2 arguments so they are in the correct order: expected value, actual value.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcOvCLWzfLSDudlH&open=AaDoGcOvCLWzfLSDudlH&pullRequest=129

Check warning on line 51 in src/test/java/com/iemr/inventory/service/supplier/SupplierServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcNsCLWzfLSDudlB&open=AaDoGcNsCLWzfLSDudlB&pullRequest=129

Check warning on line 83 in src/test/java/com/iemr/inventory/service/stockEntry/StockEntryServiceImplTest.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_Inventory-API&issues=AaDoGcNYCLWzfLSDudk_&open=AaDoGcNYCLWzfLSDudk_&pullRequest=129

Check warning on line 190 in src/test/java/com/iemr/inventory/utils/JwtUserIdValidationFilterTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace these 5 tests with a single Parameterized one.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcMoCLWzfLSDudk5&open=AaDoGcMoCLWzfLSDudk5&pullRequest=129

Check warning on line 31 in src/test/java/com/iemr/inventory/utils/CookieUtilTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.Spy'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcMcCLWzfLSDudk4&open=AaDoGcMcCLWzfLSDudk4&pullRequest=129

Check warning on line 57 in src/test/java/com/iemr/inventory/service/health/HealthServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.springframework.test.util.ReflectionTestUtils'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcM2CLWzfLSDudk7&open=AaDoGcM2CLWzfLSDudk7&pullRequest=129

Check warning on line 64 in src/test/java/com/iemr/inventory/controller/itemfacilitymapping/ItemfacilitymappingControllerTest.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_Inventory-API&issues=AaDoGcOZCLWzfLSDudlF&open=AaDoGcOZCLWzfLSDudlF&pullRequest=129

Check warning on line 254 in src/test/java/com/iemr/inventory/service/store/StoreServiceImplTest.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_Inventory-API&issues=AaDoGcNjCLWzfLSDudlA&open=AaDoGcNjCLWzfLSDudlA&pullRequest=129

Check warning on line 79 in src/test/java/com/iemr/inventory/controller/visit/VisitControllerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this and every subsequent useless "eq(...)" invocation; pass the values directly.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcN4CLWzfLSDudlC&open=AaDoGcN4CLWzfLSDudlC&pullRequest=129

Check warning on line 59 in src/test/java/com/iemr/inventory/controller/facilitytype/FacilitytypeControllerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcOQCLWzfLSDudlE&open=AaDoGcOQCLWzfLSDudlE&pullRequest=129

Check warning on line 64 in src/test/java/com/iemr/inventory/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_Inventory-API&issues=AaDoGcNBCLWzfLSDudk8&open=AaDoGcNBCLWzfLSDudk8&pullRequest=129

Check warning on line 100 in src/test/java/com/iemr/inventory/utils/CookieUtilTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Inventory-API&issues=AaDoGcMcCLWzfLSDudk3&open=AaDoGcMcCLWzfLSDudk3&pullRequest=129