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 java.util.HashSet;
24 import java.util.Hashtable;
28 import org.openecomp.policy.api.PDPNotification;
29 import org.openecomp.policy.std.MatchStore;
30 import org.openecomp.policy.std.Matches;
31 import org.openecomp.policy.std.StdPDPNotification;
33 import static org.junit.Assert.*;
36 * The class <code>MatchStoreTest</code> contains tests for the class <code>{@link MatchStore}</code>.
38 * @generatedBy CodePro at 6/1/16 1:41 PM
39 * @version $Revision: 1.0 $
41 public class MatchStoreTest {
43 * Run the MatchStore() constructor test.
45 * @generatedBy CodePro at 6/1/16 1:41 PM
48 public void testMatchStore_1()
50 MatchStore result = new MatchStore();
51 assertNotNull(result);
52 // add additional test code here
56 * Run the PDPNotification checkMatch(PDPNotification) method test.
60 * @generatedBy CodePro at 6/1/16 1:41 PM
63 public void testCheckMatch_1()
65 PDPNotification oldNotification = null;
67 PDPNotification result = MatchStore.checkMatch(oldNotification);
69 // add additional test code here
70 // An unexpected exception was thrown in user code while executing this test:
71 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
76 * Run the PDPNotification checkMatch(PDPNotification) method test.
80 * @generatedBy CodePro at 6/1/16 1:41 PM
83 public void testCheckMatch_2()
85 PDPNotification oldNotification = new StdPDPNotification();
87 PDPNotification result = MatchStore.checkMatch(oldNotification);
89 // add additional test code here
90 // An unexpected exception was thrown in user code while executing this test:
91 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
92 assertNotNull(result);
96 * Run the PDPNotification checkMatch(PDPNotification) method test.
100 * @generatedBy CodePro at 6/1/16 1:41 PM
103 public void testCheckMatch_3()
105 PDPNotification oldNotification = new StdPDPNotification();
107 PDPNotification result = MatchStore.checkMatch(oldNotification);
109 // add additional test code here
110 // An unexpected exception was thrown in user code while executing this test:
111 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
112 assertNotNull(result);
116 * Run the PDPNotification checkMatch(PDPNotification) method test.
120 * @generatedBy CodePro at 6/1/16 1:41 PM
123 public void testCheckMatch_4()
125 PDPNotification oldNotification = new StdPDPNotification();
127 PDPNotification result = MatchStore.checkMatch(oldNotification);
129 // add additional test code here
130 // An unexpected exception was thrown in user code while executing this test:
131 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
132 assertNotNull(result);
136 * Run the PDPNotification checkMatch(PDPNotification) method test.
140 * @generatedBy CodePro at 6/1/16 1:41 PM
143 public void testCheckMatch_5()
145 PDPNotification oldNotification = new StdPDPNotification();
147 PDPNotification result = MatchStore.checkMatch(oldNotification);
149 // add additional test code here
150 // An unexpected exception was thrown in user code while executing this test:
151 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
152 assertNotNull(result);
156 * Run the PDPNotification checkMatch(PDPNotification) method test.
160 * @generatedBy CodePro at 6/1/16 1:41 PM
163 public void testCheckMatch_6()
165 PDPNotification oldNotification = new StdPDPNotification();
167 PDPNotification result = MatchStore.checkMatch(oldNotification);
169 // add additional test code here
170 // An unexpected exception was thrown in user code while executing this test:
171 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
172 assertNotNull(result);
176 * Run the PDPNotification checkMatch(PDPNotification) method test.
180 * @generatedBy CodePro at 6/1/16 1:41 PM
183 public void testCheckMatch_7()
185 PDPNotification oldNotification = new StdPDPNotification();
187 PDPNotification result = MatchStore.checkMatch(oldNotification);
189 // add additional test code here
190 // An unexpected exception was thrown in user code while executing this test:
191 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
192 assertNotNull(result);
196 * Run the PDPNotification checkMatch(PDPNotification) method test.
200 * @generatedBy CodePro at 6/1/16 1:41 PM
203 public void testCheckMatch_8()
205 PDPNotification oldNotification = new StdPDPNotification();
207 PDPNotification result = MatchStore.checkMatch(oldNotification);
209 // add additional test code here
210 // An unexpected exception was thrown in user code while executing this test:
211 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
212 assertNotNull(result);
216 * Run the PDPNotification checkMatch(PDPNotification) method test.
220 * @generatedBy CodePro at 6/1/16 1:41 PM
223 public void testCheckMatch_9()
225 PDPNotification oldNotification = new StdPDPNotification();
227 PDPNotification result = MatchStore.checkMatch(oldNotification);
229 // add additional test code here
230 // An unexpected exception was thrown in user code while executing this test:
231 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
232 assertNotNull(result);
236 * Run the PDPNotification checkMatch(PDPNotification) method test.
240 * @generatedBy CodePro at 6/1/16 1:41 PM
243 public void testCheckMatch_10()
245 PDPNotification oldNotification = new StdPDPNotification();
247 PDPNotification result = MatchStore.checkMatch(oldNotification);
249 // add additional test code here
250 // An unexpected exception was thrown in user code while executing this test:
251 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
252 assertNotNull(result);
256 * Run the PDPNotification checkMatch(PDPNotification) method test.
260 * @generatedBy CodePro at 6/1/16 1:41 PM
263 public void testCheckMatch_11()
265 PDPNotification oldNotification = new StdPDPNotification();
267 PDPNotification result = MatchStore.checkMatch(oldNotification);
269 // add additional test code here
270 // An unexpected exception was thrown in user code while executing this test:
271 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
272 assertNotNull(result);
276 * Run the PDPNotification checkMatch(PDPNotification) method test.
280 * @generatedBy CodePro at 6/1/16 1:41 PM
283 public void testCheckMatch_12()
285 PDPNotification oldNotification = new StdPDPNotification();
287 PDPNotification result = MatchStore.checkMatch(oldNotification);
289 // add additional test code here
290 // An unexpected exception was thrown in user code while executing this test:
291 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
292 assertNotNull(result);
296 * Run the PDPNotification checkMatch(PDPNotification) method test.
300 * @generatedBy CodePro at 6/1/16 1:41 PM
303 public void testCheckMatch_13()
305 PDPNotification oldNotification = new StdPDPNotification();
307 PDPNotification result = MatchStore.checkMatch(oldNotification);
309 // add additional test code here
310 // An unexpected exception was thrown in user code while executing this test:
311 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
312 assertNotNull(result);
316 * Run the PDPNotification checkMatch(PDPNotification) method test.
320 * @generatedBy CodePro at 6/1/16 1:41 PM
323 public void testCheckMatch_14()
325 PDPNotification oldNotification = new StdPDPNotification();
327 PDPNotification result = MatchStore.checkMatch(oldNotification);
329 // add additional test code here
330 // An unexpected exception was thrown in user code while executing this test:
331 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
332 assertNotNull(result);
336 * Run the PDPNotification checkMatch(PDPNotification) method test.
340 * @generatedBy CodePro at 6/1/16 1:41 PM
343 public void testCheckMatch_15()
345 PDPNotification oldNotification = new StdPDPNotification();
347 PDPNotification result = MatchStore.checkMatch(oldNotification);
349 // add additional test code here
350 // An unexpected exception was thrown in user code while executing this test:
351 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
352 assertNotNull(result);
356 * Run the PDPNotification checkMatch(PDPNotification) method test.
360 * @generatedBy CodePro at 6/1/16 1:41 PM
363 public void testCheckMatch_16()
365 PDPNotification oldNotification = new StdPDPNotification();
367 PDPNotification result = MatchStore.checkMatch(oldNotification);
369 // add additional test code here
370 // An unexpected exception was thrown in user code while executing this test:
371 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
372 assertNotNull(result);
376 * Run the HashSet<Matches> getMatchStore() method test.
380 * @generatedBy CodePro at 6/1/16 1:41 PM
383 public void testGetMatchStore_1()
386 HashSet<Matches> result = MatchStore.getMatchStore();
388 // add additional test code here
389 // An unexpected exception was thrown in user code while executing this test:
390 // java.lang.ExceptionInInitializerError
391 // at org.apache.log4j.Logger.getLogger(Logger.java:104)
392 // at org.openecomp.policy.std.MatchStore.<clinit>(MatchStore.java:15)
393 assertNotNull(result);
397 * Run the void storeMatch(Matches) method test.
401 * @generatedBy CodePro at 6/1/16 1:41 PM
404 public void testStoreMatch_1()
406 Matches newMatch = new Matches();
407 newMatch.setConfigName("");
408 newMatch.setEcompName("");
410 MatchStore.storeMatch(newMatch);
412 // add additional test code here
413 // An unexpected exception was thrown in user code while executing this test:
414 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
418 * Run the void storeMatch(Matches) method test.
422 * @generatedBy CodePro at 6/1/16 1:41 PM
425 public void testStoreMatch_2()
427 Matches newMatch = new Matches();
428 newMatch.setConfigName("");
429 newMatch.setEcompName("");
431 MatchStore.storeMatch(newMatch);
433 // add additional test code here
434 // An unexpected exception was thrown in user code while executing this test:
435 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
439 * Run the void storeMatch(Matches) method test.
443 * @generatedBy CodePro at 6/1/16 1:41 PM
446 public void testStoreMatch_3()
448 Matches newMatch = new Matches();
449 newMatch.setConfigName("");
450 newMatch.setEcompName("");
452 MatchStore.storeMatch(newMatch);
454 // add additional test code here
455 // An unexpected exception was thrown in user code while executing this test:
456 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
460 * Run the void storeMatch(Matches) method test.
464 * @generatedBy CodePro at 6/1/16 1:41 PM
467 public void testStoreMatch_4()
469 Matches newMatch = new Matches();
470 newMatch.setConfigAttributes(new Hashtable());
471 newMatch.setConfigName("");
472 newMatch.setEcompName("");
474 MatchStore.storeMatch(newMatch);
476 // add additional test code here
477 // An unexpected exception was thrown in user code while executing this test:
478 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
482 * Run the void storeMatch(Matches) method test.
486 * @generatedBy CodePro at 6/1/16 1:41 PM
489 public void testStoreMatch_5()
491 Matches newMatch = new Matches();
492 newMatch.setConfigAttributes(new Hashtable());
493 newMatch.setConfigName("");
494 newMatch.setEcompName("");
496 MatchStore.storeMatch(newMatch);
498 // add additional test code here
499 // An unexpected exception was thrown in user code while executing this test:
500 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
504 * Run the void storeMatch(Matches) method test.
508 * @generatedBy CodePro at 6/1/16 1:41 PM
511 public void testStoreMatch_6()
513 Matches newMatch = new Matches();
514 newMatch.setConfigAttributes(new Hashtable());
515 newMatch.setConfigName("");
516 newMatch.setEcompName("");
518 MatchStore.storeMatch(newMatch);
520 // add additional test code here
521 // An unexpected exception was thrown in user code while executing this test:
522 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
526 * Run the void storeMatch(Matches) method test.
530 * @generatedBy CodePro at 6/1/16 1:41 PM
533 public void testStoreMatch_7()
535 Matches newMatch = new Matches();
536 newMatch.setConfigAttributes(new Hashtable());
537 newMatch.setConfigName("");
538 newMatch.setEcompName("");
540 MatchStore.storeMatch(newMatch);
542 // add additional test code here
543 // An unexpected exception was thrown in user code while executing this test:
544 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
548 * Run the void storeMatch(Matches) method test.
552 * @generatedBy CodePro at 6/1/16 1:41 PM
555 public void testStoreMatch_8()
557 Matches newMatch = new Matches();
558 newMatch.setConfigName("");
559 newMatch.setEcompName("");
561 MatchStore.storeMatch(newMatch);
563 // add additional test code here
564 // An unexpected exception was thrown in user code while executing this test:
565 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
569 * Run the void storeMatch(Matches) method test.
573 * @generatedBy CodePro at 6/1/16 1:41 PM
576 public void testStoreMatch_9()
578 Matches newMatch = new Matches();
579 newMatch.setEcompName("");
581 MatchStore.storeMatch(newMatch);
583 // add additional test code here
584 // An unexpected exception was thrown in user code while executing this test:
585 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
589 * Run the void storeMatch(Matches) method test.
593 * @generatedBy CodePro at 6/1/16 1:41 PM
596 public void testStoreMatch_10()
598 Matches newMatch = new Matches();
599 newMatch.setConfigAttributes(new Hashtable());
600 newMatch.setConfigName("");
601 newMatch.setEcompName("");
603 MatchStore.storeMatch(newMatch);
605 // add additional test code here
606 // An unexpected exception was thrown in user code while executing this test:
607 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
611 * Run the void storeMatch(Matches) method test.
615 * @generatedBy CodePro at 6/1/16 1:41 PM
618 public void testStoreMatch_11()
620 Matches newMatch = new Matches();
621 newMatch.setConfigAttributes(new Hashtable());
622 newMatch.setConfigName("");
623 newMatch.setEcompName("");
625 MatchStore.storeMatch(newMatch);
627 // add additional test code here
628 // An unexpected exception was thrown in user code while executing this test:
629 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
633 * Run the void storeMatch(Matches) method test.
637 * @generatedBy CodePro at 6/1/16 1:41 PM
640 public void testStoreMatch_12()
642 Matches newMatch = new Matches();
643 newMatch.setConfigAttributes(new Hashtable());
644 newMatch.setConfigName("");
645 newMatch.setEcompName("");
647 MatchStore.storeMatch(newMatch);
649 // add additional test code here
650 // An unexpected exception was thrown in user code while executing this test:
651 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
655 * Run the void storeMatch(Matches) method test.
659 * @generatedBy CodePro at 6/1/16 1:41 PM
662 public void testStoreMatch_13()
664 Matches newMatch = new Matches();
665 newMatch.setConfigAttributes(new Hashtable());
666 newMatch.setConfigName("");
667 newMatch.setEcompName("");
669 MatchStore.storeMatch(newMatch);
671 // add additional test code here
672 // An unexpected exception was thrown in user code while executing this test:
673 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
677 * Run the void storeMatch(Matches) method test.
681 * @generatedBy CodePro at 6/1/16 1:41 PM
684 public void testStoreMatch_14()
686 Matches newMatch = new Matches();
687 newMatch.setConfigAttributes(new Hashtable());
688 newMatch.setConfigName("");
689 newMatch.setEcompName("");
691 MatchStore.storeMatch(newMatch);
693 // add additional test code here
694 // An unexpected exception was thrown in user code while executing this test:
695 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
699 * Run the void storeMatch(Matches) method test.
703 * @generatedBy CodePro at 6/1/16 1:41 PM
706 public void testStoreMatch_15()
708 Matches newMatch = new Matches();
710 MatchStore.storeMatch(newMatch);
712 // add additional test code here
713 // An unexpected exception was thrown in user code while executing this test:
714 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
718 * Run the void storeMatch(Matches) method test.
722 * @generatedBy CodePro at 6/1/16 1:41 PM
725 public void testStoreMatch_16()
727 Matches newMatch = null;
729 MatchStore.storeMatch(newMatch);
731 // add additional test code here
732 // An unexpected exception was thrown in user code while executing this test:
733 // java.lang.NoClassDefFoundError: Could not initialize class org.openecomp.policy.std.MatchStore
737 * Perform pre-test initialization.
740 * if the initialization fails for some reason
742 * @generatedBy CodePro at 6/1/16 1:41 PM
747 // add additional set up code here
751 * Perform post-test clean-up.
754 * if the clean-up fails for some reason
756 * @generatedBy CodePro at 6/1/16 1:41 PM
759 public void tearDown()
761 // Add additional tear down code here
767 * @param args the command line arguments
769 * @generatedBy CodePro at 6/1/16 1:41 PM
771 public static void main(String[] args) {
772 new org.junit.runner.JUnitCore().run(MatchStoreTest.class);