2 * ============LICENSE_START=======================================================
\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
13 * http://www.apache.org/licenses/LICENSE-2.0
\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
21 * ============LICENSE_END=========================================================
\r
24 package org.onap.appc.client.impl.core;
\r
26 import static org.junit.Assert.*;
\r
27 import org.junit.Test;
\r
29 public class CoreExceptionTest {
\r
31 public void testCoreException() {
\r
32 CoreException ce = new CoreException();
\r
37 public void testCoreExceptionString() {
\r
38 CoreException ce = new CoreException(new String("testCoreExceptionString"));
\r
39 assertNotNull(ce.getMessage());
\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
50 public void testCoreExceptionThrowable() {
\r
51 CoreException ce = new CoreException(new Throwable());
\r
52 assertNotNull(ce.getMessage());
\r