update the package name
[dmaap/messagerouter/msgrtr.git] / src / test / java / org / onap / dmaap / mr / cambria / exception / DMaaPErrorMessagesTest.java
-/*-\r
- * ============LICENSE_START=======================================================\r
- * ONAP Policy Engine\r
- * ================================================================================\r
- * Copyright (C) 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
-package com.att.nsa.cambria.exception;\r
-\r
-import static org.junit.Assert.*;\r
-import com.att.dmf.mr.exception.DMaaPErrorMessages;\r
-import com.att.dmf.mr.transaction.TransactionObj;\r
-import com.att.dmf.mr.transaction.impl.DMaaPSimpleTransactionFactory;\r
-\r
-import org.junit.After;\r
-import org.junit.Before;\r
-import org.junit.Test;\r
-\r
-public class DMaaPErrorMessagesTest {\r
-\r
-       @Before\r
-       public void setUp() throws Exception {\r
-               \r
-       }\r
-\r
-       @After\r
-       public void tearDown() throws Exception {\r
-               \r
-       }\r
-\r
-       \r
-       @Test\r
-       public void testGetMsgSizeExceeds() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getMsgSizeExceeds();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetMsgSizeExceeds() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setMsgSizeExceeds("200");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetNotFound() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getNotFound();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetNotFound() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setNotFound("not found");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetServerUnav() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getServerUnav();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetServerUnav() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setServerUnav("server1");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetMethodNotAllowed() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getMethodNotAllowed();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetMethodNotAllowed() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setMethodNotAllowed("server2");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-\r
-       @Test\r
-       public void testGetBadRequest() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getBadRequest();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetBadRequest() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setBadRequest("badRequest");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetNwTimeout() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getNwTimeout();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetNwTimeout() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setNwTimeout("12:00:00");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetNotPermitted1() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getNotPermitted1();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetNotPermitted1() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setNotPermitted1("not permitted");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetNotPermitted2() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getNotPermitted2();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetNotPermitted2() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setNotPermitted2("not permitted2");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetTopicsfailure() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getTopicsfailure();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetTopicsfailure() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setTopicsfailure("failure");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetTopicDetailsFail() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getTopicDetailsFail();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetTopicDetailsFail() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setTopicDetailsFail("topic details fail");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetCreateTopicFail() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getCreateTopicFail();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetCreateTopicFail() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setCreateTopicFail("topic details fail");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetIncorrectJson() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getIncorrectJson();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetIncorrectJson() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setIncorrectJson("incorrect Json");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetDeleteTopicFail() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getDeleteTopicFail();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetDeleteTopicFail() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setDeleteTopicFail("delete tpic fail");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetConsumeMsgError() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getConsumeMsgError();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetConsumeMsgError() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setConsumeMsgError("consume message error");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-\r
-       @Test\r
-       public void testGetPublishMsgError() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getPublishMsgError();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetPublishMsgError() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setPublishMsgError("publish message error");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetPublishMsgCount() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getPublishMsgCount();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetPublishMsgCount() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setPublishMsgCount("200");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetAuthFailure() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getAuthFailure();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetAuthFailure() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setAuthFailure("auth failure");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testGetTopicNotExist() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.getTopicNotExist();\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       @Test\r
-       public void testSetTopicNotExist() {\r
-               \r
-               DMaaPErrorMessages msg = new DMaaPErrorMessages();\r
-               msg.setTopicNotExist("toopic doesn't exist");\r
-               assertTrue(true);\r
-\r
-       }\r
-       \r
-       \r
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP Policy Engine
+ * ================================================================================
+ * Copyright (C) 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.dmaap.mr.cambria.exception;
+
+import static org.junit.Assert.*;
+import org.onap.dmaap.dmf.mr.exception.DMaaPErrorMessages;
+import org.onap.dmaap.dmf.mr.transaction.TransactionObj;
+import org.onap.dmaap.dmf.mr.transaction.impl.DMaaPSimpleTransactionFactory;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class DMaaPErrorMessagesTest {
+
+       @Before
+       public void setUp() throws Exception {
+               
+       }
+
+       @After
+       public void tearDown() throws Exception {
+               
+       }
+
+       
+       @Test
+       public void testGetMsgSizeExceeds() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getMsgSizeExceeds();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetMsgSizeExceeds() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setMsgSizeExceeds("200");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetNotFound() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getNotFound();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetNotFound() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setNotFound("not found");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetServerUnav() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getServerUnav();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetServerUnav() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setServerUnav("server1");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetMethodNotAllowed() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getMethodNotAllowed();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetMethodNotAllowed() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setMethodNotAllowed("server2");
+               assertTrue(true);
+
+       }
+       
+
+       @Test
+       public void testGetBadRequest() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getBadRequest();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetBadRequest() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setBadRequest("badRequest");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetNwTimeout() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getNwTimeout();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetNwTimeout() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setNwTimeout("12:00:00");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetNotPermitted1() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getNotPermitted1();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetNotPermitted1() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setNotPermitted1("not permitted");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetNotPermitted2() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getNotPermitted2();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetNotPermitted2() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setNotPermitted2("not permitted2");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetTopicsfailure() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getTopicsfailure();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetTopicsfailure() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setTopicsfailure("failure");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetTopicDetailsFail() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getTopicDetailsFail();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetTopicDetailsFail() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setTopicDetailsFail("topic details fail");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetCreateTopicFail() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getCreateTopicFail();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetCreateTopicFail() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setCreateTopicFail("topic details fail");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetIncorrectJson() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getIncorrectJson();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetIncorrectJson() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setIncorrectJson("incorrect Json");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetDeleteTopicFail() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getDeleteTopicFail();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetDeleteTopicFail() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setDeleteTopicFail("delete tpic fail");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetConsumeMsgError() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getConsumeMsgError();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetConsumeMsgError() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setConsumeMsgError("consume message error");
+               assertTrue(true);
+
+       }
+       
+
+       @Test
+       public void testGetPublishMsgError() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getPublishMsgError();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetPublishMsgError() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setPublishMsgError("publish message error");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetPublishMsgCount() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getPublishMsgCount();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetPublishMsgCount() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setPublishMsgCount("200");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetAuthFailure() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getAuthFailure();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetAuthFailure() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setAuthFailure("auth failure");
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testGetTopicNotExist() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.getTopicNotExist();
+               assertTrue(true);
+
+       }
+       
+       @Test
+       public void testSetTopicNotExist() {
+               
+               DMaaPErrorMessages msg = new DMaaPErrorMessages();
+               msg.setTopicNotExist("toopic doesn't exist");
+               assertTrue(true);
+
+       }
+       
+       
 }
\ No newline at end of file