Skip to content

Add the test cases - #157

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

fix: add the test cases (#152)

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

Annotations

Check warning on line 478 in src/test/java/com/wipro/fhir/service/atoms/feed/bahmni/FeedWorkersTest.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_FHIR-API&issues=AaDoBOlinN7g1RTEctpV&open=AaDoBOlinN7g1RTEctpV&pullRequest=157

Check warning on line 28 in src/test/java/com/wipro/fhir/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_FHIR-API&issues=AaDoBOginN7g1RTEctol&open=AaDoBOginN7g1RTEctol&pullRequest=157

Check warning on line 150 in src/test/java/com/wipro/fhir/controller/healthID/CreateHealthIDWithMobileOTPTest.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_FHIR-API&issues=AaDoBOemnN7g1RTEctoZ&open=AaDoBOemnN7g1RTEctoZ&pullRequest=157

Check warning on line 250 in src/test/java/com/wipro/fhir/service/ndhm/NdhmHealthIdServicesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOivnN7g1RTEcto7&open=AaDoBOivnN7g1RTEcto7&pullRequest=157

Check warning on line 321 in src/test/java/com/wipro/fhir/service/e_aushdhi/EAushadhiServiceImplTest.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_FHIR-API&issues=AaDoBOl0nN7g1RTEctpX&open=AaDoBOl0nN7g1RTEctpX&pullRequest=157

Check warning on line 455 in src/test/java/com/wipro/fhir/service/atoms/feed/bahmni/FeedWorkersTest.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_FHIR-API&issues=AaDoBOlinN7g1RTEctpU&open=AaDoBOlinN7g1RTEctpU&pullRequest=157

Check warning on line 90 in src/test/java/com/wipro/fhir/service/ndhm/NdhmHealthIdServicesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOivnN7g1RTEcto4&open=AaDoBOivnN7g1RTEcto4&pullRequest=157

Check warning on line 204 in src/test/java/com/wipro/fhir/service/ndhm/NdhmGatewayCommonServicesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOiMnN7g1RTEctoy&open=AaDoBOiMnN7g1RTEctoy&pullRequest=157

Check warning on line 66 in src/test/java/com/wipro/fhir/controller/healthCard/GenerateHealthIDCardControllerTest.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_FHIR-API&issues=AaDoBOd3nN7g1RTEctoT&open=AaDoBOd3nN7g1RTEctoT&pullRequest=157

Check warning on line 134 in src/test/java/com/wipro/fhir/service/common/CommonServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOktnN7g1RTEctpI&open=AaDoBOktnN7g1RTEctpI&pullRequest=157

Check warning on line 427 in src/test/java/com/wipro/fhir/service/atoms/feed/bahmni/FeedWorkersTest.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_FHIR-API&issues=AaDoBOlinN7g1RTEctpS&open=AaDoBOlinN7g1RTEctpS&pullRequest=157

Check warning on line 72 in src/test/java/com/wipro/fhir/service/ndhm/LinkCareContext_NDHMServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOihnN7g1RTEcto2&open=AaDoBOihnN7g1RTEcto2&pullRequest=157

Check warning on line 55 in src/test/java/com/wipro/fhir/service/v3/abha/CertificateKeyServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOjunN7g1RTEctpA&open=AaDoBOjunN7g1RTEctpA&pullRequest=157

Check warning on line 94 in src/test/java/com/wipro/fhir/service/v3/abha/CertificateKeyServiceImplTest.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_FHIR-API&issues=AaDoBOjunN7g1RTEctpB&open=AaDoBOjunN7g1RTEctpB&pullRequest=157

Check warning on line 62 in src/test/java/com/wipro/fhir/controller/facility/FacilityControllerTest.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_FHIR-API&issues=AaDoBOfWnN7g1RTEctod&open=AaDoBOfWnN7g1RTEctod&pullRequest=157

Check warning on line 126 in src/test/java/com/wipro/fhir/utils/mapper/InputMapperTest.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_FHIR-API&issues=AaDoBOginN7g1RTEctok&open=AaDoBOginN7g1RTEctok&pullRequest=157

Check warning on line 87 in src/test/java/com/wipro/fhir/service/ndhm/CreateHealthID_Aadhaar_NDHMServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOh8nN7g1RTEctow&open=AaDoBOh8nN7g1RTEctow&pullRequest=157

Check warning on line 133 in src/test/java/com/wipro/fhir/service/facility/FacilityServiceImplTest.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_FHIR-API&issues=AaDoBOk9nN7g1RTEctpK&open=AaDoBOk9nN7g1RTEctpK&pullRequest=157

Check warning on line 573 in src/test/java/com/wipro/fhir/utils/validator/ValidatorTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "spy".

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOgvnN7g1RTEctoo&open=AaDoBOgvnN7g1RTEctoo&pullRequest=157

Check warning on line 43 in src/test/java/com/wipro/fhir/config/quartz/QuartzJobsTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.mockito.Mockito.when'.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOmjnN7g1RTEctpd&open=AaDoBOmjnN7g1RTEctpd&pullRequest=157

Check warning on line 281 in src/test/java/com/wipro/fhir/service/ndhm/NdhmGatewayCommonServicesTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "times".

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOiMnN7g1RTEctoz&open=AaDoBOiMnN7g1RTEctoz&pullRequest=157

Check warning on line 45 in src/test/java/com/wipro/fhir/service/healthID_validate/HealthIDValidationServiceImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PSMRI_FHIR-API&issues=AaDoBOmEnN7g1RTEctpa&open=AaDoBOmEnN7g1RTEctpa&pullRequest=157

Check warning on line 109 in src/test/java/com/wipro/fhir/controller/healthID/CreateHealthIDWithMobileOTPTest.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_FHIR-API&issues=AaDoBOemnN7g1RTEctoY&open=AaDoBOemnN7g1RTEctoY&pullRequest=157

Check warning on line 84 in src/test/java/com/wipro/fhir/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_FHIR-API&issues=AaDoBOgRnN7g1RTEctoh&open=AaDoBOgRnN7g1RTEctoh&pullRequest=157

Check warning on line 71 in src/test/java/com/wipro/fhir/controller/eaushdhi/EAushadhiControllerTest.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_FHIR-API&issues=AaDoBOfHnN7g1RTEctob&open=AaDoBOfHnN7g1RTEctob&pullRequest=157