diff options
author | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-03-05 14:18:59 +0000 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-03-06 15:31:13 +0000 |
commit | 567a72bdcc1e653d444d45ebde6b8b749776b27e (patch) | |
tree | e9153d6d21c0ec76d6ecce4f62982134b5ae75cb /appc-inbound/appc-design-services/provider/src/main/java | |
parent | 95e087ce46412a680f31ae421482e0b35653f899 (diff) |
Test coverage in ArtifactHandlerClient
Increase coverage from 34% to 83%
Fix for Sonar major issue on branch coverage
Issue-ID: APPC-1436
Change-Id: Ie26e2cb71c833e4f086da2a238bd6f956bd85f33
Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
Diffstat (limited to 'appc-inbound/appc-design-services/provider/src/main/java')
2 files changed, 2 insertions, 2 deletions
diff --git a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/ArtifactHandlerClient.java b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/ArtifactHandlerClient.java index a75f8d21f..9aeaa1aa5 100644 --- a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/ArtifactHandlerClient.java +++ b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/ArtifactHandlerClient.java @@ -143,7 +143,7 @@ public class ArtifactHandlerClient { } catch (Exception e) { log.debug("failed in RESTCONT Action", e); - throw new IOException("Error While Sending Rest Request" + e.getMessage()); + throw new IOException("Error While Sending Rest Request" + e.getMessage(), e); } finally { // clean up. if (client != null) { diff --git a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/DesignServiceConstants.java b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/DesignServiceConstants.java index ccd5bf8d0..42f3d3f3e 100644 --- a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/DesignServiceConstants.java +++ b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/services/util/DesignServiceConstants.java @@ -111,7 +111,7 @@ public class DesignServiceConstants { public static final String CHECKVNF = "checkVNF"; private DesignServiceConstants() { } - + public static String getEnvironmentVariable(String env) { return System.getenv(env); } |