From 54d10a74fdd8cfcb89fd1c0ab91abefdf0602367 Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Tue, 5 Apr 2022 13:54:32 +0100 Subject: 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 Change-Id: I03c7355a7e9d19f57523a65fbff45c9d8f1c9e07 --- pom.xml | 4 +- .../dmi/rest/controller/DmiRestController.java | 50 ++++++++-------------- .../ncmp/dmi/service/operation/SdncOperations.java | 39 ++++++----------- .../rest/controller/ControllerSecuritySpec.groovy | 13 +++++- .../rest/controller/DmiRestControllerSpec.groovy | 24 +++++------ 5 files changed, 58 insertions(+), 72 deletions(-) diff --git a/pom.xml b/pom.xml index 2901fe05..616a8822 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@