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;
28 import static org.junit.Assert.*;
31 * The class <code>NotificationStoreTest</code> contains tests for the class
32 * <code>{@link NotificationStore}</code>.
34 * @generatedBy CodePro at 6/1/16 1:40 PM
35 * @version $Revision: 1.0 $
37 public class NotificationStoreTest {
39 * Run the void recordNotification(StdPDPNotification) method test.
43 * @generatedBy CodePro at 6/1/16 1:40 PM
46 public void testRecordNotification_1() throws Exception {
47 StdPDPNotification notification = new StdPDPNotification();
49 NotificationStore.recordNotification(notification);
51 // add additional test code here
55 * Run the void recordNotification(StdPDPNotification) method test.
59 * @generatedBy CodePro at 6/1/16 1:40 PM
62 public void testRecordNotification_2() throws Exception {
63 StdPDPNotification notification = new StdPDPNotification();
65 NotificationStore.recordNotification(notification);
67 // add additional test code here
71 * Run the void recordNotification(StdPDPNotification) method test.
75 * @generatedBy CodePro at 6/1/16 1:40 PM
78 public void testRecordNotification_3() throws Exception {
79 StdPDPNotification notification = new StdPDPNotification();
81 NotificationStore.recordNotification(notification);
83 // add additional test code here
87 * Run the void recordNotification(StdPDPNotification) method test.
91 * @generatedBy CodePro at 6/1/16 1:40 PM
94 public void testRecordNotification_4() throws Exception {
95 StdPDPNotification notification = new StdPDPNotification();
97 NotificationStore.recordNotification(notification);
99 // add additional test code here
103 * Run the void recordNotification(StdPDPNotification) method test.
107 * @generatedBy CodePro at 6/1/16 1:40 PM
110 public void testRecordNotification_5() throws Exception {
111 StdPDPNotification notification = new StdPDPNotification();
113 NotificationStore.recordNotification(notification);
115 // add additional test code here
119 * Run the void recordNotification(StdPDPNotification) method test.
123 * @generatedBy CodePro at 6/1/16 1:40 PM
126 public void testRecordNotification_6() throws Exception {
127 StdPDPNotification notification = new StdPDPNotification();
129 NotificationStore.recordNotification(notification);
131 // add additional test code here
135 * Run the void recordNotification(StdPDPNotification) method test.
139 * @generatedBy CodePro at 6/1/16 1:40 PM
142 public void testRecordNotification_7() throws Exception {
143 StdPDPNotification notification = new StdPDPNotification();
145 NotificationStore.recordNotification(notification);
147 // add additional test code here
151 * Run the void recordNotification(StdPDPNotification) method test.
155 * @generatedBy CodePro at 6/1/16 1:40 PM
158 public void testRecordNotification_8() throws Exception {
159 StdPDPNotification notification = new StdPDPNotification();
161 NotificationStore.recordNotification(notification);
163 // add additional test code here
167 * Run the void recordNotification(StdPDPNotification) method test.
171 * @generatedBy CodePro at 6/1/16 1:40 PM
174 public void testRecordNotification_9() throws Exception {
175 StdPDPNotification notification = new StdPDPNotification();
177 NotificationStore.recordNotification(notification);
179 // add additional test code here
183 * Run the void recordNotification(StdPDPNotification) method test.
187 * @generatedBy CodePro at 6/1/16 1:40 PM
190 public void testRecordNotification_10() throws Exception {
191 StdPDPNotification notification = new StdPDPNotification();
193 NotificationStore.recordNotification(notification);
195 // add additional test code here
199 * Run the void recordNotification(StdPDPNotification) method test.
203 * @generatedBy CodePro at 6/1/16 1:40 PM
206 public void testRecordNotification_11() throws Exception {
207 StdPDPNotification notification = new StdPDPNotification();
209 NotificationStore.recordNotification(notification);
211 // add additional test code here
215 * Run the void recordNotification(StdPDPNotification) method test.
219 * @generatedBy CodePro at 6/1/16 1:40 PM
222 public void testRecordNotification_12() throws Exception {
223 StdPDPNotification notification = new StdPDPNotification();
225 NotificationStore.recordNotification(notification);
227 // add additional test code here
231 * Run the void recordNotification(StdPDPNotification) method test.
235 * @generatedBy CodePro at 6/1/16 1:40 PM
238 public void testRecordNotification_13() throws Exception {
239 StdPDPNotification notification = new StdPDPNotification();
241 NotificationStore.recordNotification(notification);
243 // add additional test code here
247 * Run the void recordNotification(StdPDPNotification) method test.
251 * @generatedBy CodePro at 6/1/16 1:40 PM
254 public void testRecordNotification_14() throws Exception {
255 StdPDPNotification notification = new StdPDPNotification();
257 NotificationStore.recordNotification(notification);
259 // add additional test code here
263 * Run the void recordNotification(StdPDPNotification) method test.
267 * @generatedBy CodePro at 6/1/16 1:40 PM
270 public void testRecordNotification_15() throws Exception {
271 StdPDPNotification notification = new StdPDPNotification();
273 NotificationStore.recordNotification(notification);
275 // add additional test code here
279 * Run the void recordNotification(StdPDPNotification) method test.
283 * @generatedBy CodePro at 6/1/16 1:40 PM
286 public void testRecordNotification_16() throws Exception {
287 StdPDPNotification notification = null;
289 NotificationStore.recordNotification(notification);
291 // add additional test code here
295 * Perform pre-test initialization.
297 * @throws Exception if the initialization fails for some reason
299 * @generatedBy CodePro at 6/1/16 1:40 PM
302 public void setUp() throws Exception {
303 // add additional set up code here
307 * Perform post-test clean-up.
309 * @throws Exception if the clean-up fails for some reason
311 * @generatedBy CodePro at 6/1/16 1:40 PM
314 public void tearDown() throws Exception {
315 // Add additional tear down code here
321 * @param args the command line arguments
323 * @generatedBy CodePro at 6/1/16 1:40 PM
325 public static void main(String[] args) {
326 new org.junit.runner.JUnitCore().run(NotificationStoreTest.class);