2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.policy.std.test;
23 import static org.junit.Assert.assertNotNull;
25 import org.junit.After;
26 import org.junit.Before;
27 import org.junit.Test;
28 import org.openecomp.policy.std.NotificationUnMarshal;
29 import org.openecomp.policy.std.StdPDPNotification;
32 * The class <code>NotificationUnMarshalTest</code> contains tests for the class <code>{@link NotificationUnMarshal}</code>.
34 * @generatedBy CodePro at 6/1/16 1:40 PM
35 * @version $Revision: 1.0 $
37 public class NotificationUnMarshalTest {
39 * Run the StdPDPNotification notificationJSON(String) method test.
43 * @generatedBy CodePro at 6/1/16 1:40 PM
45 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
46 public void testNotificationJSON_1()
50 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
52 // add additional test code here
53 assertNotNull(result);
57 * Run the StdPDPNotification notificationJSON(String) method test.
61 * @generatedBy CodePro at 6/1/16 1:40 PM
63 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
64 public void testNotificationJSON_2()
68 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
70 // add additional test code here
71 assertNotNull(result);
75 * Run the StdPDPNotification notificationJSON(String) method test.
79 * @generatedBy CodePro at 6/1/16 1:40 PM
81 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
82 public void testNotificationJSON_3()
86 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
88 // add additional test code here
89 assertNotNull(result);
93 * Run the StdPDPNotification notificationJSON(String) method test.
97 * @generatedBy CodePro at 6/1/16 1:40 PM
99 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
100 public void testNotificationJSON_4()
104 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
106 // add additional test code here
107 assertNotNull(result);
111 * Run the StdPDPNotification notificationJSON(String) method test.
115 * @generatedBy CodePro at 6/1/16 1:40 PM
117 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
118 public void testNotificationJSON_5()
122 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
124 // add additional test code here
125 assertNotNull(result);
129 * Run the StdPDPNotification notificationJSON(String) method test.
133 * @generatedBy CodePro at 6/1/16 1:40 PM
135 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
136 public void testNotificationJSON_6()
140 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
142 // add additional test code here
143 assertNotNull(result);
147 * Run the StdPDPNotification notificationJSON(String) method test.
151 * @generatedBy CodePro at 6/1/16 1:40 PM
153 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
154 public void testNotificationJSON_7()
158 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
160 // add additional test code here
161 assertNotNull(result);
165 * Run the StdPDPNotification notificationJSON(String) method test.
169 * @generatedBy CodePro at 6/1/16 1:40 PM
171 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
172 public void testNotificationJSON_8()
176 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
178 // add additional test code here
179 assertNotNull(result);
183 * Run the StdPDPNotification notificationJSON(String) method test.
187 * @generatedBy CodePro at 6/1/16 1:40 PM
189 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
190 public void testNotificationJSON_9()
194 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
196 // add additional test code here
197 assertNotNull(result);
201 * Run the StdPDPNotification notificationJSON(String) method test.
205 * @generatedBy CodePro at 6/1/16 1:40 PM
207 @Test(expected = com.fasterxml.jackson.databind.JsonMappingException.class)
208 public void testNotificationJSON_10()
212 StdPDPNotification result = NotificationUnMarshal.notificationJSON(json);
214 // add additional test code here
215 assertNotNull(result);
219 * Perform pre-test initialization.
222 * if the initialization fails for some reason
224 * @generatedBy CodePro at 6/1/16 1:40 PM
229 // add additional set up code here
233 * Perform post-test clean-up.
236 * if the clean-up fails for some reason
238 * @generatedBy CodePro at 6/1/16 1:40 PM
241 public void tearDown()
243 // Add additional tear down code here
249 * @param args the command line arguments
251 * @generatedBy CodePro at 6/1/16 1:40 PM
253 public static void main(String[] args) {
254 new org.junit.runner.JUnitCore().run(NotificationUnMarshalTest.class);