Improve branch coverage 22/128322/3
authorToineSiebelink <toine.siebelink@est.tech>
Tue, 5 Apr 2022 12:54:32 +0000 (13:54 +0100)
committerToineSiebelink <toine.siebelink@est.tech>
Wed, 6 Apr 2022 09:10:56 +0000 (10:10 +0100)
commit54d10a74fdd8cfcb89fd1c0ab91abefdf0602367
tree25e5d499b9074577db69a04d844186dc2424c639
parent39450c583c097c3b083ca79a39c5f99a218f6cdc
Improve branch coverage

- update to oparent 3.3.0 to allow for checkstyle @SupressWarnings (not used in the end)
- refactor code to minimize unused branches (no more switch-statements :-))
- Added test for neccessary but uncovered branches

Issue-ID: CPS-475
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I03c7355a7e9d19f57523a65fbff45c9d8f1c9e07
pom.xml
src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java
src/main/java/org/onap/cps/ncmp/dmi/service/operation/SdncOperations.java
src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/ControllerSecuritySpec.groovy
src/test/groovy/org/onap/cps/ncmp/dmi/rest/controller/DmiRestControllerSpec.groovy