Junit Test Case Added for AAIClientCallFailed.java 35/79335/1
authorSudarshan Kumar <sudars19@in.ibm.com>
Thu, 28 Feb 2019 08:35:02 +0000 (14:05 +0530)
committerSudarshan Kumar <sudars19@in.ibm.com>
Thu, 28 Feb 2019 08:35:57 +0000 (14:05 +0530)
Junit Test Case Added for AAIClientCallFailed.java

Issue-ID: SO-1576
Change-Id: Id9ba99a8268a0c8698f4d913c999ff4a06c3be1f
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/exceptions/AAIClientCallFailedTest.java [new file with mode: 0644]

diff --git a/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/exceptions/AAIClientCallFailedTest.java b/mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/tenantisolation/exceptions/AAIClientCallFailedTest.java
new file mode 100644 (file)
index 0000000..2cb02e9
--- /dev/null
@@ -0,0 +1,35 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP - SO
+ * ================================================================================
+ * Copyright (C) 2019 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
+ *
+ *      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.so.apihandlerinfra.tenantisolation.exceptions;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+import org.onap.so.apihandlerinfra.BaseTest;
+
+public class AAIClientCallFailedTest extends BaseTest {
+
+    @Test
+    public void testAAIClientCallFailedException() {
+        AAIClientCallFailed aAIClientCallFailed = new AAIClientCallFailed("failed", new Throwable("throwable"));
+        assertEquals("failed", aAIClientCallFailed.getMessage());
+        assertEquals("throwable", aAIClientCallFailed.getCause().getMessage());
+    }
+}