DMAAP-MR - Merge MR repos
[dmaap/messagerouter/messageservice.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
26 import org.junit.After;
27 import org.junit.Before;
28 import org.junit.Test;
29
30 public class DMaaPErrorMessagesTest {
31
32         @Before
33         public void setUp() throws Exception {
34                 
35         }
36
37         @After
38         public void tearDown() throws Exception {
39                 
40         }
41
42         
43         @Test
44         public void testGetMsgSizeExceeds() {
45                 
46                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
47                 msg.getMsgSizeExceeds();
48                 assertTrue(true);
49
50         }
51         
52         @Test
53         public void testSetMsgSizeExceeds() {
54                 
55                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
56                 msg.setMsgSizeExceeds("200");
57                 assertTrue(true);
58
59         }
60         
61         @Test
62         public void testGetNotFound() {
63                 
64                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
65                 msg.getNotFound();
66                 assertTrue(true);
67
68         }
69         
70         @Test
71         public void testSetNotFound() {
72                 
73                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
74                 msg.setNotFound("not found");
75                 assertTrue(true);
76
77         }
78         
79         @Test
80         public void testGetServerUnav() {
81                 
82                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
83                 msg.getServerUnav();
84                 assertTrue(true);
85
86         }
87         
88         @Test
89         public void testSetServerUnav() {
90                 
91                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
92                 msg.setServerUnav("server1");
93                 assertTrue(true);
94
95         }
96         
97         @Test
98         public void testGetMethodNotAllowed() {
99                 
100                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
101                 msg.getMethodNotAllowed();
102                 assertTrue(true);
103
104         }
105         
106         @Test
107         public void testSetMethodNotAllowed() {
108                 
109                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
110                 msg.setMethodNotAllowed("server2");
111                 assertTrue(true);
112
113         }
114         
115
116         @Test
117         public void testGetBadRequest() {
118                 
119                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
120                 msg.getBadRequest();
121                 assertTrue(true);
122
123         }
124         
125         @Test
126         public void testSetBadRequest() {
127                 
128                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
129                 msg.setBadRequest("badRequest");
130                 assertTrue(true);
131
132         }
133         
134         @Test
135         public void testGetNwTimeout() {
136                 
137                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
138                 msg.getNwTimeout();
139                 assertTrue(true);
140
141         }
142         
143         @Test
144         public void testSetNwTimeout() {
145                 
146                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
147                 msg.setNwTimeout("12:00:00");
148                 assertTrue(true);
149
150         }
151         
152         @Test
153         public void testGetNotPermitted1() {
154                 
155                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
156                 msg.getNotPermitted1();
157                 assertTrue(true);
158
159         }
160         
161         @Test
162         public void testSetNotPermitted1() {
163                 
164                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
165                 msg.setNotPermitted1("not permitted");
166                 assertTrue(true);
167
168         }
169         
170         @Test
171         public void testGetNotPermitted2() {
172                 
173                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
174                 msg.getNotPermitted2();
175                 assertTrue(true);
176
177         }
178         
179         @Test
180         public void testSetNotPermitted2() {
181                 
182                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
183                 msg.setNotPermitted2("not permitted2");
184                 assertTrue(true);
185
186         }
187         
188         @Test
189         public void testGetTopicsfailure() {
190                 
191                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
192                 msg.getTopicsfailure();
193                 assertTrue(true);
194
195         }
196         
197         @Test
198         public void testSetTopicsfailure() {
199                 
200                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
201                 msg.setTopicsfailure("failure");
202                 assertTrue(true);
203
204         }
205         
206         @Test
207         public void testGetTopicDetailsFail() {
208                 
209                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
210                 msg.getTopicDetailsFail();
211                 assertTrue(true);
212
213         }
214         
215         @Test
216         public void testSetTopicDetailsFail() {
217                 
218                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
219                 msg.setTopicDetailsFail("topic details fail");
220                 assertTrue(true);
221
222         }
223         
224         @Test
225         public void testGetCreateTopicFail() {
226                 
227                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
228                 msg.getCreateTopicFail();
229                 assertTrue(true);
230
231         }
232         
233         @Test
234         public void testSetCreateTopicFail() {
235                 
236                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
237                 msg.setCreateTopicFail("topic details fail");
238                 assertTrue(true);
239
240         }
241         
242         @Test
243         public void testGetIncorrectJson() {
244                 
245                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
246                 msg.getIncorrectJson();
247                 assertTrue(true);
248
249         }
250         
251         @Test
252         public void testSetIncorrectJson() {
253                 
254                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
255                 msg.setIncorrectJson("incorrect Json");
256                 assertTrue(true);
257
258         }
259         
260         @Test
261         public void testGetDeleteTopicFail() {
262                 
263                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
264                 msg.getDeleteTopicFail();
265                 assertTrue(true);
266
267         }
268         
269         @Test
270         public void testSetDeleteTopicFail() {
271                 
272                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
273                 msg.setDeleteTopicFail("delete tpic fail");
274                 assertTrue(true);
275
276         }
277         
278         @Test
279         public void testGetConsumeMsgError() {
280                 
281                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
282                 msg.getConsumeMsgError();
283                 assertTrue(true);
284
285         }
286         
287         @Test
288         public void testSetConsumeMsgError() {
289                 
290                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
291                 msg.setConsumeMsgError("consume message error");
292                 assertTrue(true);
293
294         }
295         
296
297         @Test
298         public void testGetPublishMsgError() {
299                 
300                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
301                 msg.getPublishMsgError();
302                 assertTrue(true);
303
304         }
305         
306         @Test
307         public void testSetPublishMsgError() {
308                 
309                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
310                 msg.setPublishMsgError("publish message error");
311                 assertTrue(true);
312
313         }
314         
315         @Test
316         public void testGetPublishMsgCount() {
317                 
318                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
319                 msg.getPublishMsgCount();
320                 assertTrue(true);
321
322         }
323         
324         @Test
325         public void testSetPublishMsgCount() {
326                 
327                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
328                 msg.setPublishMsgCount("200");
329                 assertTrue(true);
330
331         }
332         
333         @Test
334         public void testGetAuthFailure() {
335                 
336                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
337                 msg.getAuthFailure();
338                 assertTrue(true);
339
340         }
341         
342         @Test
343         public void testSetAuthFailure() {
344                 
345                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
346                 msg.setAuthFailure("auth failure");
347                 assertTrue(true);
348
349         }
350         
351         @Test
352         public void testGetTopicNotExist() {
353                 
354                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
355                 msg.getTopicNotExist();
356                 assertTrue(true);
357
358         }
359         
360         @Test
361         public void testSetTopicNotExist() {
362                 
363                 DMaaPErrorMessages msg = new DMaaPErrorMessages();
364                 msg.setTopicNotExist("toopic doesn't exist");
365                 assertTrue(true);
366
367         }
368         
369         
370 }