Changed to unmaintained
[appc.git] / appc-client / client-lib / src / test / java / org / onap / appc / client / impl / core / CoreExceptionTest.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * ONAP : APPC\r
4  * ================================================================================\r
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Copyright (C) 2017 Amdocs\r
8  * =============================================================================\r
9  * Licensed under the Apache License, Version 2.0 (the "License");\r
10  * you may not use this file except in compliance with the License.\r
11  * You may obtain a copy of the License at\r
12  *\r
13  *      http://www.apache.org/licenses/LICENSE-2.0\r
14  *\r
15  * Unless required by applicable law or agreed to in writing, software\r
16  * distributed under the License is distributed on an "AS IS" BASIS,\r
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
18  * See the License for the specific language governing permissions and\r
19  * limitations under the License.\r
20  *\r
21  * ============LICENSE_END=========================================================\r
22  */\r
23 \r
24 package org.onap.appc.client.impl.core;\r
25 \r
26 import static org.junit.Assert.*;\r
27 import org.junit.Test;\r
28 \r
29 public class CoreExceptionTest {\r
30     @Test\r
31     public void testCoreException() {\r
32         CoreException ce = new CoreException();\r
33         assertNotNull(ce);\r
34     }\r
35 \r
36     @Test\r
37     public void testCoreExceptionString() {\r
38         CoreException ce = new CoreException(new String("testCoreExceptionString"));\r
39         assertNotNull(ce.getMessage());\r
40     }\r
41 \r
42     @Test\r
43     public void testCoreExceptionStringThrowable() {\r
44         Throwable tr = new Throwable();\r
45         CoreException ce = new CoreException("abc", tr);\r
46         assertNotNull(ce.getMessage());\r
47     }\r
48 \r
49     @Test\r
50     public void testCoreExceptionThrowable() {\r
51         CoreException ce = new CoreException(new Throwable());\r
52         assertNotNull(ce.getMessage());\r
53     }\r
54 }