aboutsummaryrefslogtreecommitdiffstats
path: root/appc-inbound/appc-design-services
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-08-01 17:48:43 +0530
committerTakamune Cho <tc012c@att.com>2018-08-02 00:21:19 +0000
commit7328253106df509c118ef4a65eabcada0d4dc55b (patch)
tree1421bbddd2f3c07ef62a3b026db99f21f9d95ad7 /appc-inbound/appc-design-services
parentde5607b30a107d7e11c63e70556391dfe44230d0 (diff)
added test case to TestValidatorService.java
to increase code coverage Issue-ID: APPC-1086 Change-Id: Id3d7d93fb02d62be8288ae7065b69b22ce1d8c2f Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-inbound/appc-design-services')
-rw-r--r--appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestValidatorService.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestValidatorService.java b/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestValidatorService.java
index 2f0a1ff96..ada599dde 100644
--- a/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestValidatorService.java
+++ b/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestValidatorService.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modification Copyright 2018 IBM.
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -25,7 +27,7 @@ package org.onap.appc.design.validator;
import java.io.InputStream;
import java.util.Enumeration;
-import java.util.HashMap;
+import java.util.HashMap;
import java.util.Properties;
import org.junit.Before;
import org.junit.Test;
@@ -127,4 +129,14 @@ public class TestValidatorService {
Assert.assertEquals(null, response);
}
+
+ @Test
+ public void testValidValidateVelocity() throws Exception{
+ String response = null;
+ String validateVelocity = "{\"Test\" \"Test1\" }";
+ ValidatorService vs = new ValidatorService();
+ response = vs.execute("", validateVelocity, "VELOCITY");
+ Assert.assertEquals("success", response);
+
+ }
}