update the package name
[dmaap/messagerouter/msgrtr.git] / src / test / java / org / onap / dmaap / mr / cambria / exception / DMaaPErrorMessagesTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21  package org.onap.dmaap.mr.cambria.exception;
22
23 import static org.junit.Assert.*;
24 import org.onap.dmaap.dmf.mr.exception.DMaaPErrorMessages;
25 import org.onap.dmaap.dmf.mr.transaction.TransactionObj;
26 import org.onap.dmaap.dmf.mr.transaction.impl.DMaaPSimpleTransactionFactory;
27
28 import org.junit.After;
29 import org.junit.Before;
30 import org.junit.Test;
31
32 public class DMaaPErrorMessagesTest {
33
34         @Before
35         public void setUp() throws Exception {
36                 
37         }
38
39         @After
40         public void tearDown() throws Exception {
41                 
42         }
43
44         
45         @Test
46         public void testGetMsgSizeExceeds() {
47                 
48                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
49                 msg.getMsgSizeExceeds();
50                 assertTrue(true);
51
52         }
53         
54         @Test
55         public void testSetMsgSizeExceeds() {
56                 
57                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
58                 msg.setMsgSizeExceeds("200");
59                 assertTrue(true);
60
61         }
62         
63         @Test
64         public void testGetNotFound() {
65                 
66                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
67                 msg.getNotFound();
68                 assertTrue(true);
69
70         }
71         
72         @Test
73         public void testSetNotFound() {
74                 
75                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
76                 msg.setNotFound("not found");
77                 assertTrue(true);
78
79         }
80         
81         @Test
82         public void testGetServerUnav() {
83                 
84                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
85                 msg.getServerUnav();
86                 assertTrue(true);
87
88         }
89         
90         @Test
91         public void testSetServerUnav() {
92                 
93                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
94                 msg.setServerUnav("server1");
95                 assertTrue(true);
96
97         }
98         
99         @Test
100         public void testGetMethodNotAllowed() {
101                 
102                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
103                 msg.getMethodNotAllowed();
104                 assertTrue(true);
105
106         }
107         
108         @Test
109         public void testSetMethodNotAllowed() {
110                 
111                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
112                 msg.setMethodNotAllowed("server2");
113                 assertTrue(true);
114
115         }
116         
117
118         @Test
119         public void testGetBadRequest() {
120                 
121                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
122                 msg.getBadRequest();
123                 assertTrue(true);
124
125         }
126         
127         @Test
128         public void testSetBadRequest() {
129                 
130                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
131                 msg.setBadRequest("badRequest");
132                 assertTrue(true);
133
134         }
135         
136         @Test
137         public void testGetNwTimeout() {
138                 
139                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
140                 msg.getNwTimeout();
141                 assertTrue(true);
142
143         }
144         
145         @Test
146         public void testSetNwTimeout() {
147                 
148                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
149                 msg.setNwTimeout("12:00:00");
150                 assertTrue(true);
151
152         }
153         
154         @Test
155         public void testGetNotPermitted1() {
156                 
157                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
158                 msg.getNotPermitted1();
159                 assertTrue(true);
160
161         }
162         
163         @Test
164         public void testSetNotPermitted1() {
165                 
166                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
167                 msg.setNotPermitted1("not permitted");
168                 assertTrue(true);
169
170         }
171         
172         @Test
173         public void testGetNotPermitted2() {
174                 
175                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
176                 msg.getNotPermitted2();
177                 assertTrue(true);
178
179         }
180         
181         @Test
182         public void testSetNotPermitted2() {
183                 
184                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
185                 msg.setNotPermitted2("not permitted2");
186                 assertTrue(true);
187
188         }
189         
190         @Test
191         public void testGetTopicsfailure() {
192                 
193                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
194                 msg.getTopicsfailure();
195                 assertTrue(true);
196
197         }
198         
199         @Test
200         public void testSetTopicsfailure() {
201                 
202                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
203                 msg.setTopicsfailure("failure");
204                 assertTrue(true);
205
206         }
207         
208         @Test
209         public void testGetTopicDetailsFail() {
210                 
211                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
212                 msg.getTopicDetailsFail();
213                 assertTrue(true);
214
215         }
216         
217         @Test
218         public void testSetTopicDetailsFail() {
219                 
220                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
221                 msg.setTopicDetailsFail("topic details fail");
222                 assertTrue(true);
223
224         }
225         
226         @Test
227         public void testGetCreateTopicFail() {
228                 
229                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
230                 msg.getCreateTopicFail();
231                 assertTrue(true);
232
233         }
234         
235         @Test
236         public void testSetCreateTopicFail() {
237                 
238                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
239                 msg.setCreateTopicFail("topic details fail");
240                 assertTrue(true);
241
242         }
243         
244         @Test
245         public void testGetIncorrectJson() {
246                 
247                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
248                 msg.getIncorrectJson();
249                 assertTrue(true);
250
251         }
252         
253         @Test
254         public void testSetIncorrectJson() {
255                 
256                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
257                 msg.setIncorrectJson("incorrect Json");
258                 assertTrue(true);
259
260         }
261         
262         @Test
263         public void testGetDeleteTopicFail() {
264                 
265                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
266                 msg.getDeleteTopicFail();
267                 assertTrue(true);
268
269         }
270         
271         @Test
272         public void testSetDeleteTopicFail() {
273                 
274                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
275                 msg.setDeleteTopicFail("delete tpic fail");
276                 assertTrue(true);
277
278         }
279         
280         @Test
281         public void testGetConsumeMsgError() {
282                 
283                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
284                 msg.getConsumeMsgError();
285                 assertTrue(true);
286
287         }
288         
289         @Test
290         public void testSetConsumeMsgError() {
291                 
292                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
293                 msg.setConsumeMsgError("consume message error");
294                 assertTrue(true);
295
296         }
297         
298
299         @Test
300         public void testGetPublishMsgError() {
301                 
302                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
303                 msg.getPublishMsgError();
304                 assertTrue(true);
305
306         }
307         
308         @Test
309         public void testSetPublishMsgError() {
310                 
311                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
312                 msg.setPublishMsgError("publish message error");
313                 assertTrue(true);
314
315         }
316         
317         @Test
318         public void testGetPublishMsgCount() {
319                 
320                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
321                 msg.getPublishMsgCount();
322                 assertTrue(true);
323
324         }
325         
326         @Test
327         public void testSetPublishMsgCount() {
328                 
329                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
330                 msg.setPublishMsgCount("200");
331                 assertTrue(true);
332
333         }
334         
335         @Test
336         public void testGetAuthFailure() {
337                 
338                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
339                 msg.getAuthFailure();
340                 assertTrue(true);
341
342         }
343         
344         @Test
345         public void testSetAuthFailure() {
346                 
347                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
348                 msg.setAuthFailure("auth failure");
349                 assertTrue(true);
350
351         }
352         
353         @Test
354         public void testGetTopicNotExist() {
355                 
356                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
357                 msg.getTopicNotExist();
358                 assertTrue(true);
359
360         }
361         
362         @Test
363         public void testSetTopicNotExist() {
364                 
365                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
366                 msg.setTopicNotExist("toopic doesn't exist");
367                 assertTrue(true);
368
369         }
370         
371         
372 }