summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/TestTemplateException.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/TestTemplateException.java b/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/TestTemplateException.java
new file mode 100644
index 000000000..2fd25b233
--- /dev/null
+++ b/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/TestTemplateException.java
@@ -0,0 +1,50 @@
+/*
+ * ============LICENSE_START==========================================
+ * org.onap.music
+ * ===================================================================
+ * Copyright (c) 2019 IBM Intellectual Property
+ * ===================================================================
+ * 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
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ============LICENSE_END=============================================
+ * ====================================================================
+ */
+package org.onap.appc.ccadaptor;
+
+import static org.junit.Assert.assertSame;
+
+import org.junit.Before;
+import org.junit.Test;
+
+public class TestTemplateException {
+
+ String s1;
+ String s2;
+
+ @Before
+ public void setUp() {
+ s1 = "Value1";
+ s2 = "value2";
+ }
+
+ @Test
+ public void TestException1() {
+ try {
+ if (!s1.equalsIgnoreCase(s2)) {
+ throw new TemplateException("TemplateException");
+ }
+ } catch (TemplateException te) {
+ assertSame("TemplateException", te.getMessage());
+ }
+ }
+}