Add junit coverage to TimedOutException class 69/41469/1
authorMei Su <ms6523@att.com>
Fri, 6 Apr 2018 21:08:06 +0000 (17:08 -0400)
committerMei Su <ms6523@att.com>
Fri, 6 Apr 2018 21:17:58 +0000 (17:17 -0400)
Introduce junit-tests for TimedOutException class

Issue-ID: APPC-834
Change-Id: If4ba78735064106391d9354b0a7036bd8dd060e6
Signed-off-by: Mei Su <ms6523@att.com>
appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/TimedOutExceptionTest.java [new file with mode: 0644]

diff --git a/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/TimedOutExceptionTest.java b/appc-config/appc-config-adaptor/provider/src/test/java/org/onap/appc/ccadaptor/TimedOutExceptionTest.java
new file mode 100644 (file)
index 0000000..e9e054e
--- /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.ccadaptor;\r
+\r
+import org.junit.Assert;\r
+\r
+import org.junit.Test;\r
+\r
+public class TimedOutExceptionTest {\r
+\r
+    @Test\r
+    public void testTimedOutException() {\r
+        String message = "my test message";\r
+        TimedOutException timedOutExp = new TimedOutException(message);\r
+        Assert.assertEquals(message, timedOutExp.getLocalizedMessage());\r
+        Assert.assertEquals(message, timedOutExp.getMessage());\r
+    }\r
+\r
+}\r