From 7793441455f9981f0a8764a4cc9ac89a7e38342c Mon Sep 17 00:00:00 2001 From: Piotr Darosz Date: Thu, 29 Aug 2019 08:53:10 +0200 Subject: catalog-be code coverage increase Increase test code coverage in catalog-be ServiceBusinessLogic - part 1 Change-Id: I1ef29b46f41bfe7d41219ddbe5dbb0dd5a6649ad Issue-ID: SDC-2326 Signed-off-by: Piotr Darosz --- .../org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'catalog-be/src/main/java') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java index fc0380a108..28fc2597b8 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java @@ -170,7 +170,8 @@ public class ServiceBusinessLogic extends ComponentBusinessLogic { private static final Logger log = Logger.getLogger(ServiceBusinessLogic.class); private static final String INITIAL_VERSION = "0.1"; private static final String STATUS_SUCCESS_200 = "200"; - private static final String STATUS_DEPLOYED = "DEPLOYED"; + private static final String STATUS_DEPLOYED = "DEPLOYED"; + static final String IS_VALID = "isValid"; private ForwardingPathOperation forwardingPathOperation; private AuditCassandraDao auditCassandraDao; @@ -1035,7 +1036,7 @@ public class ServiceBusinessLogic extends ComponentBusinessLogic { if (dataModelResponse.isLeft()) { Map result = new HashMap<>(); - result.put("isValid", dataModelResponse.left().value()); + result.put(IS_VALID, dataModelResponse.left().value()); log.debug("validation was successfully performed."); return Either.left(result); } -- cgit 1.2.3-korg