Skip to content

Add Unit Test Cases - #192

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

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

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

02e57c5
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 28, 2026 in 26s

Annotations

Check warning on line 36 in src/test/java/com/iemr/common/identity/utils/JwtAuthenticationUtilTest.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_Identity-API&issues=AaBr5hMWznKcUKZO7oEd&open=AaBr5hMWznKcUKZO7oEd&pullRequest=192

Check warning on line 97 in src/test/java/com/iemr/common/identity/utils/validator/ValidatorTest.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_Identity-API&issues=AaBr5hLqznKcUKZO7oEV&open=AaBr5hLqznKcUKZO7oEV&pullRequest=192

Check warning on line 109 in src/test/java/com/iemr/common/identity/service/elasticsearch/BeneficiaryElasticsearchIndexUpdaterTest.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_Identity-API&issues=AaBr5hMqznKcUKZO7oEj&open=AaBr5hMqznKcUKZO7oEj&pullRequest=192

Check warning on line 153 in src/test/java/com/iemr/common/identity/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'org.json.JSONException', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hLVznKcUKZO7oEN&open=AaBr5hLVznKcUKZO7oEN&pullRequest=192

Check warning on line 25 in src/test/java/com/iemr/common/identity/utils/OutputResponseBuilderTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.api.Assertions.assertFalse'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hL2znKcUKZO7oEY&open=AaBr5hL2znKcUKZO7oEY&pullRequest=192

Check warning on line 52 in src/test/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchIndexingServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'co.elastic.clients.elasticsearch.indices.DeleteIndexRequest'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hM_znKcUKZO7oEl&open=AaBr5hM_znKcUKZO7oEl&pullRequest=192

Check warning on line 299 in src/test/java/com/iemr/common/identity/controller/IdentityControllerTest.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_Identity-API&issues=AaBr5hO2znKcUKZO7oFA&open=AaBr5hO2znKcUKZO7oFA&pullRequest=192

Check warning on line 197 in src/test/java/com/iemr/common/identity/utils/validator/ValidatorTest.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_Identity-API&issues=AaBr5hLqznKcUKZO7oEW&open=AaBr5hLqznKcUKZO7oEW&pullRequest=192

Check warning on line 129 in src/test/java/com/iemr/common/identity/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'org.json.JSONException', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hLVznKcUKZO7oEL&open=AaBr5hLVznKcUKZO7oEL&pullRequest=192

Check failure on line 166 in src/test/java/com/iemr/common/identity/utils/http/HTTPRequestInterceptorTest.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_Identity-API&issues=AaBr5hK_znKcUKZO7oEE&open=AaBr5hK_znKcUKZO7oEE&pullRequest=192

Check warning on line 1531 in src/test/java/com/iemr/common/identity/service/IdentityServiceTest.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_Identity-API&issues=AaBr5hNyznKcUKZO7oEx&open=AaBr5hNyznKcUKZO7oEx&pullRequest=192

Check warning on line 126 in src/test/java/com/iemr/common/identity/service/health/HealthServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move the conditional expression inside this operation.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hN_znKcUKZO7oEy&open=AaBr5hN_znKcUKZO7oEy&pullRequest=192

Check warning on line 62 in src/test/java/com/iemr/common/identity/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'org.json.JSONException', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hLVznKcUKZO7oEJ&open=AaBr5hLVznKcUKZO7oEJ&pullRequest=192

Check failure on line 75 in src/test/java/com/iemr/common/identity/utils/JsonHelpersTest.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_Identity-API&issues=AaBr5hMgznKcUKZO7oEf&open=AaBr5hMgznKcUKZO7oEf&pullRequest=192

Check warning on line 168 in src/test/java/com/iemr/common/identity/service/elasticsearch/ElasticsearchSyncServiceTest.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_Identity-API&issues=AaBr5hNLznKcUKZO7oEn&open=AaBr5hNLznKcUKZO7oEn&pullRequest=192

Check warning on line 208 in src/test/java/com/iemr/common/identity/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'org.json.JSONException', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hLVznKcUKZO7oER&open=AaBr5hLVznKcUKZO7oER&pullRequest=192

Check warning on line 26 in src/test/java/com/iemr/common/identity/utils/sessionobject/SessionObjectTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.ArgumentMatchers.any'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hLeznKcUKZO7oEU&open=AaBr5hLeznKcUKZO7oEU&pullRequest=192

Check warning on line 96 in src/test/java/com/iemr/common/identity/dto/BeneficiaryOrderingTest.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_Identity-API&issues=AaBr5hPVznKcUKZO7oFH&open=AaBr5hPVznKcUKZO7oFH&pullRequest=192

Check warning on line 93 in src/test/java/com/iemr/common/identity/utils/redis/RedisStorageTest.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_Identity-API&issues=AaBr5hLKznKcUKZO7oEF&open=AaBr5hLKznKcUKZO7oEF&pullRequest=192

Check warning on line 26 in src/test/java/com/iemr/common/identity/exception/IdentityExceptionsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.api.Assertions.assertSame'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hOLznKcUKZO7oE1&open=AaBr5hOLznKcUKZO7oE1&pullRequest=192

Check warning on line 5 in src/test/java/com/iemr/common/identity/controller/health/HealthControllerTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.ArgumentMatchers.anyString'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hOVznKcUKZO7oE2&open=AaBr5hOVznKcUKZO7oE2&pullRequest=192

Check warning on line 646 in src/test/java/com/iemr/common/identity/service/health/HealthServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "doThrow".

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hN_znKcUKZO7oE0&open=AaBr5hN_znKcUKZO7oE0&pullRequest=192

Check warning on line 40 in src/test/java/com/iemr/common/identity/utils/response/OutputResponseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.junit.jupiter.params.provider.ValueSource'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_Identity-API&issues=AaBr5hLVznKcUKZO7oET&open=AaBr5hLVznKcUKZO7oET&pullRequest=192

Check warning on line 28 in src/test/java/com/iemr/common/identity/utils/JwtAuthenticationUtilTest.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_Identity-API&issues=AaBr5hMWznKcUKZO7oEc&open=AaBr5hMWznKcUKZO7oEc&pullRequest=192

Check warning on line 153 in src/test/java/com/iemr/common/identity/utils/redis/RedisStorageTest.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_Identity-API&issues=AaBr5hLKznKcUKZO7oEG&open=AaBr5hLKznKcUKZO7oEG&pullRequest=192