2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Modifications Copyright (C) 2019 Samsung
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
23 package org.onap.policy.std.test;
26 import org.onap.policy.std.NotificationStore;
27 import org.onap.policy.std.StdPDPNotification;
30 * The class <code>NotificationStoreTest</code> contains tests for the class
31 * <code>{@link NotificationStore}</code>.
33 * @generatedBy CodePro at 6/1/16 1:40 PM
34 * @version $Revision: 1.0 $
36 public class NotificationStoreTest {
38 * Run the void recordNotification(StdPDPNotification) method test.
42 * @generatedBy CodePro at 6/1/16 1:40 PM
45 public void testRecordNotification_1() throws Exception {
46 StdPDPNotification notification = new StdPDPNotification();
48 NotificationStore.recordNotification(notification);
50 // add additional test code here
54 * Run the void recordNotification(StdPDPNotification) method test.
58 * @generatedBy CodePro at 6/1/16 1:40 PM
61 public void testRecordNotification_2() throws Exception {
62 StdPDPNotification notification = new StdPDPNotification();
64 NotificationStore.recordNotification(notification);
66 // add additional test code here
70 * Run the void recordNotification(StdPDPNotification) method test.
74 * @generatedBy CodePro at 6/1/16 1:40 PM
77 public void testRecordNotification_3() throws Exception {
78 StdPDPNotification notification = new StdPDPNotification();
80 NotificationStore.recordNotification(notification);
82 // add additional test code here
86 * Run the void recordNotification(StdPDPNotification) method test.
90 * @generatedBy CodePro at 6/1/16 1:40 PM
93 public void testRecordNotification_4() throws Exception {
94 StdPDPNotification notification = new StdPDPNotification();
96 NotificationStore.recordNotification(notification);
98 // add additional test code here
102 * Run the void recordNotification(StdPDPNotification) method test.
106 * @generatedBy CodePro at 6/1/16 1:40 PM
109 public void testRecordNotification_5() throws Exception {
110 StdPDPNotification notification = new StdPDPNotification();
112 NotificationStore.recordNotification(notification);
114 // add additional test code here
118 * Run the void recordNotification(StdPDPNotification) method test.
122 * @generatedBy CodePro at 6/1/16 1:40 PM
125 public void testRecordNotification_6() throws Exception {
126 StdPDPNotification notification = new StdPDPNotification();
128 NotificationStore.recordNotification(notification);
130 // add additional test code here
134 * Run the void recordNotification(StdPDPNotification) method test.
138 * @generatedBy CodePro at 6/1/16 1:40 PM
141 public void testRecordNotification_7() throws Exception {
142 StdPDPNotification notification = new StdPDPNotification();
144 NotificationStore.recordNotification(notification);
146 // add additional test code here
150 * Run the void recordNotification(StdPDPNotification) method test.
154 * @generatedBy CodePro at 6/1/16 1:40 PM
157 public void testRecordNotification_8() throws Exception {
158 StdPDPNotification notification = new StdPDPNotification();
160 NotificationStore.recordNotification(notification);
162 // add additional test code here
166 * Run the void recordNotification(StdPDPNotification) method test.
170 * @generatedBy CodePro at 6/1/16 1:40 PM
173 public void testRecordNotification_9() throws Exception {
174 StdPDPNotification notification = new StdPDPNotification();
176 NotificationStore.recordNotification(notification);
178 // add additional test code here
182 * Run the void recordNotification(StdPDPNotification) method test.
186 * @generatedBy CodePro at 6/1/16 1:40 PM
189 public void testRecordNotification_10() throws Exception {
190 StdPDPNotification notification = new StdPDPNotification();
192 NotificationStore.recordNotification(notification);
194 // add additional test code here
198 * Run the void recordNotification(StdPDPNotification) method test.
202 * @generatedBy CodePro at 6/1/16 1:40 PM
205 public void testRecordNotification_11() throws Exception {
206 StdPDPNotification notification = new StdPDPNotification();
208 NotificationStore.recordNotification(notification);
210 // add additional test code here
214 * Run the void recordNotification(StdPDPNotification) method test.
218 * @generatedBy CodePro at 6/1/16 1:40 PM
221 public void testRecordNotification_12() throws Exception {
222 StdPDPNotification notification = new StdPDPNotification();
224 NotificationStore.recordNotification(notification);
226 // add additional test code here
230 * Run the void recordNotification(StdPDPNotification) method test.
234 * @generatedBy CodePro at 6/1/16 1:40 PM
237 public void testRecordNotification_13() throws Exception {
238 StdPDPNotification notification = new StdPDPNotification();
240 NotificationStore.recordNotification(notification);
242 // add additional test code here
246 * Run the void recordNotification(StdPDPNotification) method test.
250 * @generatedBy CodePro at 6/1/16 1:40 PM
253 public void testRecordNotification_14() throws Exception {
254 StdPDPNotification notification = new StdPDPNotification();
256 NotificationStore.recordNotification(notification);
258 // add additional test code here
262 * Run the void recordNotification(StdPDPNotification) method test.
266 * @generatedBy CodePro at 6/1/16 1:40 PM
269 public void testRecordNotification_15() throws Exception {
270 StdPDPNotification notification = new StdPDPNotification();
272 NotificationStore.recordNotification(notification);
274 // add additional test code here
278 * Run the void recordNotification(StdPDPNotification) method test.
282 * @generatedBy CodePro at 6/1/16 1:40 PM
285 public void testRecordNotification_16() throws Exception {
286 StdPDPNotification notification = null;
288 NotificationStore.recordNotification(notification);
290 // add additional test code here
294 * Perform pre-test initialization.
296 * @throws Exception if the initialization fails for some reason
298 * @generatedBy CodePro at 6/1/16 1:40 PM
301 public void setUp() throws Exception {
302 // add additional set up code here
306 * Perform post-test clean-up.
308 * @throws Exception if the clean-up fails for some reason
310 * @generatedBy CodePro at 6/1/16 1:40 PM
313 public void tearDown() throws Exception {
314 // Add additional tear down code here
320 * @param args the command line arguments
322 * @generatedBy CodePro at 6/1/16 1:40 PM
324 public static void main(String[] args) {
325 new org.junit.runner.JUnitCore().run(NotificationStoreTest.class);