Add junit coverage to PoolExtensionException class 65/41965/1
authorMei Su <ms6523@att.com>
Tue, 10 Apr 2018 17:51:58 +0000 (13:51 -0400)
committerMei Su <ms6523@att.com>
Tue, 10 Apr 2018 17:59:55 +0000 (13:59 -0400)
Introduce junit-tests for PoolExtensionException class

Issue-ID: APPC-843
Change-Id: I7155317dc5c060dc08b26d8b87103bcb2a8f19b4
Signed-off-by: Mei Su <ms6523@att.com>
appc-common/src/test/java/org/onap/appc/pool/PoolExtensionExceptionTest.java [new file with mode: 0644]

diff --git a/appc-common/src/test/java/org/onap/appc/pool/PoolExtensionExceptionTest.java b/appc-common/src/test/java/org/onap/appc/pool/PoolExtensionExceptionTest.java
new file mode 100644 (file)
index 0000000..615233d
--- /dev/null
@@ -0,0 +1,36 @@
+/*-\r
+* ============LICENSE_START=======================================================\r
+* ONAP : APPC\r
+* ================================================================================\r
+* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.\r
+* =============================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+*      http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/\r
+package org.onap.appc.pool;\r
+\r
+import org.junit.Assert;\r
+\r
+import org.junit.Test;\r
+\r
+public class PoolExtensionExceptionTest {\r
+\r
+    @Test\r
+    public void testPoolExtensionException() {\r
+        String message = "test message";\r
+        PoolExtensionException poolExtExcpt = new PoolExtensionException(message);\r
+        Assert.assertEquals(message, poolExtExcpt.getMessage());\r
+        Assert.assertEquals(message, poolExtExcpt.getLocalizedMessage());\r
+    }\r
+\r
+}\r