Fix sonar issue with test coverage 92/98892/2
authorDmitry Puzikov <d.puzikov2@partner.samsung.com>
Thu, 21 Nov 2019 14:44:17 +0000 (15:44 +0100)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Sun, 1 Dec 2019 15:45:34 +0000 (15:45 +0000)
commit57c8700a4808665d5005de583a15354b9fb0b9f8
treea57a8b871948674419309e30944a3f12ead01880
parentd6890fce461c040c2776dfdedd47be282a29f877
Fix sonar issue with test coverage

Added tests to cover the case.

Fixed provider load failure:
If more than one provider is configured and if the first if failng
try to load next one.

Change-Id: Idd7edb90e2b9b1cf21ec20e299140d3362bd1138
Issue-ID: SDC-2693
Signed-off-by: Dmitry Puzikov <d.puzikov2@partner.samsung.com>
common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationLoader.java
common/onap-common-configuration-management/onap-configuration-management-api/src/test/java/org/onap/config/api/ConfigurationLoaderTest.java [new file with mode: 0644]
common/onap-common-configuration-management/onap-configuration-management-api/src/test/java/org/onap/config/api/impl/ConfigurationManagerTestImpl.java [new file with mode: 0644]
common/onap-common-configuration-management/onap-configuration-management-api/src/test/resources/META-INF/services/org.onap.config.api.ConfigurationManager [new file with mode: 0644]