summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/onap/appc/dg/common/impl/JsonDgUtilImplTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/onap/appc/dg/common/impl/JsonDgUtilImplTest.java b/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/onap/appc/dg/common/impl/JsonDgUtilImplTest.java
index 2e84473fe..3ce0aa4fe 100644
--- a/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/onap/appc/dg/common/impl/JsonDgUtilImplTest.java
+++ b/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/onap/appc/dg/common/impl/JsonDgUtilImplTest.java
@@ -188,4 +188,15 @@ public class JsonDgUtilImplTest {
assertNotNull(ctx.getAttribute("cvaas-file-content"));
assertTrue(ctx.getAttribute("cvaas-file-content").contains(epochUploadTimestamp.toString()));
}
+
+ @Test(expected=APPCException.class)
+ public void testCheckFileCreated() throws APPCException
+ {
+ SvcLogicContext ctx= new SvcLogicContext();
+ ctx.setAttribute("cvaas-file-name", "testCvaasFile");
+ JsonDgUtilImpl jsonDgUtil = new JsonDgUtilImpl();
+ Map<String, String> params = new HashMap<>();
+ params.put("vnf-id", "testVnfId");
+ jsonDgUtil.checkFileCreated(params, ctx);
+ }
}