From: Sandeep J Date: Wed, 1 Aug 2018 12:18:43 +0000 (+0530) Subject: added test case to TestValidatorService.java X-Git-Tag: 1.4.0~136 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=7328253106df509c118ef4a65eabcada0d4dc55b;p=appc.git added test case to TestValidatorService.java to increase code coverage Issue-ID: APPC-1086 Change-Id: Id3d7d93fb02d62be8288ae7065b69b22ce1d8c2f Signed-off-by: Sandeep J --- 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); + + } }