aboutsummaryrefslogtreecommitdiffstats
path: root/appc-inbound
diff options
context:
space:
mode:
Diffstat (limited to 'appc-inbound')
-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);
+
+ }
}