Add junit coverage to PoolDrainedException class 43/41943/2
authorMei Su <ms6523@att.com>
Tue, 10 Apr 2018 14:46:29 +0000 (10:46 -0400)
committerMei Su <ms6523@att.com>
Tue, 10 Apr 2018 16:04:40 +0000 (12:04 -0400)
Introduce junit-tests for PoolDrainedException class

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

diff --git a/appc-common/src/test/java/org/onap/appc/pool/PoolDrainedExceptionTest.java b/appc-common/src/test/java/org/onap/appc/pool/PoolDrainedExceptionTest.java
new file mode 100644 (file)
index 0000000..c7b03f3
--- /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 PoolDrainedExceptionTest {\r
+\r
+    @Test\r
+    public void testPoolDrainedException() {\r
+        String message = "test message";\r
+        PoolDrainedException poolDrainedExp = new PoolDrainedException(message);\r
+        Assert.assertEquals(message, poolDrainedExp.getMessage());\r
+        Assert.assertEquals(message, poolDrainedExp.getLocalizedMessage());\r
+    }\r
+\r
+}\r