Improve unit test in the NonConfigResourceTest and various sonar fixes. 59/89259/2
authork.kedron <k.kedron@partner.samsung.com>
Tue, 4 Jun 2019 14:21:03 +0000 (16:21 +0200)
committerOren Kleks <orenkle@amdocs.com>
Tue, 11 Jun 2019 06:38:06 +0000 (06:38 +0000)
commit3a98ad373d3f8a8cccce36f78e24bd24278043d6
tree252377d7610edd465bcff1b85adb61d87f4b8921
parent0d29f9d83ef3de89ea59622be7fe045ac0eed5f8
Improve unit test in the NonConfigResourceTest and various sonar fixes.

Improve the NonConfigResourceTest.
Remove the throws the Exception in CliConfigurationImp constructor.
ConfigurationImpl class:
- Replace the string to chart in indexOf method.
- Extract the assigment out from expression

Issue-ID: SDC-2327
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: If72a75e6a2d81a9ea74e3ae1af94b16a8489a29a
common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/CliConfigurationImpl.java
common/onap-common-configuration-management/onap-configuration-management-core/src/main/java/org/onap/config/impl/ConfigurationImpl.java
common/onap-common-configuration-management/onap-configuration-management-core/src/test/java/org/onap/config/NonConfigResourceTest.java