[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / std / test / NotificationUnMarshalTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineAPI
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.policy.std.test;
22
23 import static org.junit.Assert.assertNotNull;
24
25 import org.junit.After;
26 import org.junit.Before;
27 import org.junit.Test;
28 import org.onap.policy.std.NotificationUnMarshal;
29 import org.onap.policy.std.StdPDPNotification;
30
31 /**
32  * The class <code>NotificationUnMarshalTest</code> contains tests for the class <code>{@link NotificationUnMarshal}</code>.
33  *
34  * @generatedBy CodePro at 6/1/16 1:40 PM
35  * @version $Revision: 1.0 $
36  */
37 public class NotificationUnMarshalTest {
38         /**
39          * Run the StdPDPNotification notificationJSON(String) method test.
40          *
41          * @throws Exception
42          *
43          * @generatedBy CodePro at 6/1/16 1:40 PM
44          */
45         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
46         public void testNotificationJSON_1()
47                 throws Exception {
48                 String json = "";
49
50                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
51
52                 // add additional test code here
53                 assertNotNull(result);
54         }
55
56         /**
57          * Run the StdPDPNotification notificationJSON(String) method test.
58          *
59          * @throws Exception
60          *
61          * @generatedBy CodePro at 6/1/16 1:40 PM
62          */
63         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
64         public void testNotificationJSON_2()
65                 throws Exception {
66                 String json = "";
67
68                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
69
70                 // add additional test code here
71                 assertNotNull(result);
72         }
73
74         /**
75          * Run the StdPDPNotification notificationJSON(String) method test.
76          *
77          * @throws Exception
78          *
79          * @generatedBy CodePro at 6/1/16 1:40 PM
80          */
81         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
82         public void testNotificationJSON_3()
83                 throws Exception {
84                 String json = "";
85
86                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
87
88                 // add additional test code here
89                 assertNotNull(result);
90         }
91
92         /**
93          * Run the StdPDPNotification notificationJSON(String) method test.
94          *
95          * @throws Exception
96          *
97          * @generatedBy CodePro at 6/1/16 1:40 PM
98          */
99         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
100         public void testNotificationJSON_4()
101                 throws Exception {
102                 String json = "";
103
104                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
105
106                 // add additional test code here
107                 assertNotNull(result);
108         }
109
110         /**
111          * Run the StdPDPNotification notificationJSON(String) method test.
112          *
113          * @throws Exception
114          *
115          * @generatedBy CodePro at 6/1/16 1:40 PM
116          */
117         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
118         public void testNotificationJSON_5()
119                 throws Exception {
120                 String json = "";
121
122                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
123
124                 // add additional test code here
125                 assertNotNull(result);
126         }
127
128         /**
129          * Run the StdPDPNotification notificationJSON(String) method test.
130          *
131          * @throws Exception
132          *
133          * @generatedBy CodePro at 6/1/16 1:40 PM
134          */
135         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
136         public void testNotificationJSON_6()
137                 throws Exception {
138                 String json = "";
139
140                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
141
142                 // add additional test code here
143                 assertNotNull(result);
144         }
145
146         /**
147          * Run the StdPDPNotification notificationJSON(String) method test.
148          *
149          * @throws Exception
150          *
151          * @generatedBy CodePro at 6/1/16 1:40 PM
152          */
153         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
154         public void testNotificationJSON_7()
155                 throws Exception {
156                 String json = "";
157
158                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
159
160                 // add additional test code here
161                 assertNotNull(result);
162         }
163
164         /**
165          * Run the StdPDPNotification notificationJSON(String) method test.
166          *
167          * @throws Exception
168          *
169          * @generatedBy CodePro at 6/1/16 1:40 PM
170          */
171         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
172         public void testNotificationJSON_8()
173                 throws Exception {
174                 String json = "";
175
176                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
177
178                 // add additional test code here
179                 assertNotNull(result);
180         }
181
182         /**
183          * Run the StdPDPNotification notificationJSON(String) method test.
184          *
185          * @throws Exception
186          *
187          * @generatedBy CodePro at 6/1/16 1:40 PM
188          */
189         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
190         public void testNotificationJSON_9()
191                 throws Exception {
192                 String json = "";
193
194                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
195
196                 // add additional test code here
197                 assertNotNull(result);
198         }
199
200         /**
201          * Run the StdPDPNotification notificationJSON(String) method test.
202          *
203          * @throws Exception
204          *
205          * @generatedBy CodePro at 6/1/16 1:40 PM
206          */
207         @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
208         public void testNotificationJSON_10()
209                 throws Exception {
210                 String json = "";
211
212                 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
213
214                 // add additional test code here
215                 assertNotNull(result);
216         }
217
218         /**
219          * Perform pre-test initialization.
220          *
221          * @throws Exception
222          *         if the initialization fails for some reason
223          *
224          * @generatedBy CodePro at 6/1/16 1:40 PM
225          */
226         @Before
227         public void setUp()
228                 throws Exception {
229                 // add additional set up code here
230         }
231
232         /**
233          * Perform post-test clean-up.
234          *
235          * @throws Exception
236          *         if the clean-up fails for some reason
237          *
238          * @generatedBy CodePro at 6/1/16 1:40 PM
239          */
240         @After
241         public void tearDown()
242                 throws Exception {
243                 // Add additional tear down code here
244         }
245
246         /**
247          * Launch the test.
248          *
249          * @param args the command line arguments
250          *
251          * @generatedBy CodePro at 6/1/16 1:40 PM
252          */
253         public static void main(String[] args) {
254                 new org.junit.runner.JUnitCore().run(NotificationUnMarshalTest.class);
255         }
256 }