-/*******************************************************************************\r
- * ============LICENSE_START====================================================\r
- * * org.onap.aaf\r
- * * ===========================================================================\r
- * * Copyright © 2017 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
- * *\r
- ******************************************************************************/\r
-package org.onap.aaf.cadi.test;\r
-\r
-import static org.junit.Assert.*;\r
-\r
-import org.junit.Test;\r
-import org.onap.aaf.cadi.CadiException;\r
-\r
-import static org.hamcrest.CoreMatchers.is;\r
-\r
-public class JU_CadiException {\r
- @Test\r
- public void testCadiException() {\r
- CadiException exception = new CadiException();\r
- \r
- assertNotNull(exception);\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionString() {\r
- CadiException exception = new CadiException("New Exception");\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("New Exception"));\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionThrowable() {\r
- CadiException exception = new CadiException(new Throwable("New Exception"));\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("java.lang.Throwable: New Exception"));\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionStringThrowable() {\r
- CadiException exception = new CadiException("New Exception",new Throwable("New Exception"));\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("New Exception"));\r
-\r
- }\r
- \r
- @Test\r
- public void testCadiException1() {\r
- CadiException exception = new CadiException();\r
- \r
- assertNotNull(exception);\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionString1() {\r
- CadiException exception = new CadiException("New Exception");\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("New Exception"));\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionThrowable1() {\r
- CadiException exception = new CadiException(new Throwable("New Exception"));\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("java.lang.Throwable: New Exception"));\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionStringThrowable1() {\r
- CadiException exception = new CadiException("New Exception",new Throwable("New Exception"));\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("New Exception"));\r
-\r
- }\r
- \r
- @Test\r
- public void testCadiException2() {\r
- CadiException exception = new CadiException();\r
- \r
- assertNotNull(exception);\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionString2() {\r
- CadiException exception = new CadiException("New Exception");\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("New Exception"));\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionThrowable2() {\r
- CadiException exception = new CadiException(new Throwable("New Exception"));\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("java.lang.Throwable: New Exception"));\r
- }\r
-\r
- @Test\r
- public void testCadiExceptionStringThrowable2() {\r
- CadiException exception = new CadiException("New Exception",new Throwable("New Exception"));\r
- assertNotNull(exception);\r
- assertThat(exception.getMessage(), is("New Exception"));\r
-\r
- }\r
-\r
-\r
-\r
-}\r
+/*******************************************************************************
+ * ============LICENSE_START====================================================
+ * * org.onap.aaf
+ * * ===========================================================================
+ * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+ * * ===========================================================================
+ * * Licensed under the Apache License, Version 2.0 (the "License");
+ * * you may not use this file except in compliance with the License.
+ * * You may obtain a copy of the License at
+ * *
+ * * http://www.apache.org/licenses/LICENSE-2.0
+ * *
+ * * Unless required by applicable law or agreed to in writing, software
+ * * distributed under the License is distributed on an "AS IS" BASIS,
+ * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * * See the License for the specific language governing permissions and
+ * * limitations under the License.
+ * * ============LICENSE_END====================================================
+ * *
+ * *
+ ******************************************************************************/
+package org.onap.aaf.cadi.test;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+import org.onap.aaf.cadi.CadiException;
+
+import static org.hamcrest.CoreMatchers.is;
+
+public class JU_CadiException {
+ @Test
+ public void testCadiException() {
+ CadiException exception = new CadiException();
+
+ assertNotNull(exception);
+ }
+
+ @Test
+ public void testCadiExceptionString() {
+ CadiException exception = new CadiException("New Exception");
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("New Exception"));
+ }
+
+ @Test
+ public void testCadiExceptionThrowable() {
+ CadiException exception = new CadiException(new Throwable("New Exception"));
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("java.lang.Throwable: New Exception"));
+ }
+
+ @Test
+ public void testCadiExceptionStringThrowable() {
+ CadiException exception = new CadiException("New Exception",new Throwable("New Exception"));
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("New Exception"));
+
+ }
+
+ @Test
+ public void testCadiException1() {
+ CadiException exception = new CadiException();
+
+ assertNotNull(exception);
+ }
+
+ @Test
+ public void testCadiExceptionString1() {
+ CadiException exception = new CadiException("New Exception");
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("New Exception"));
+ }
+
+ @Test
+ public void testCadiExceptionThrowable1() {
+ CadiException exception = new CadiException(new Throwable("New Exception"));
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("java.lang.Throwable: New Exception"));
+ }
+
+ @Test
+ public void testCadiExceptionStringThrowable1() {
+ CadiException exception = new CadiException("New Exception",new Throwable("New Exception"));
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("New Exception"));
+
+ }
+
+ @Test
+ public void testCadiException2() {
+ CadiException exception = new CadiException();
+
+ assertNotNull(exception);
+ }
+
+ @Test
+ public void testCadiExceptionString2() {
+ CadiException exception = new CadiException("New Exception");
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("New Exception"));
+ }
+
+ @Test
+ public void testCadiExceptionThrowable2() {
+ CadiException exception = new CadiException(new Throwable("New Exception"));
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("java.lang.Throwable: New Exception"));
+ }
+
+ @Test
+ public void testCadiExceptionStringThrowable2() {
+ CadiException exception = new CadiException("New Exception",new Throwable("New Exception"));
+ assertNotNull(exception);
+ assertThat(exception.getMessage(), is("New Exception"));
+
+ }
+
+
+
+}