Technical debt reduction
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / std / test / MatchStoreTest.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 import static org.junit.Assert.assertNull;
25
26 import java.util.Hashtable;
27 import java.util.Set;
28
29 import org.junit.After;
30 import org.junit.Before;
31 import org.junit.Test;
32 import org.onap.policy.api.PDPNotification;
33 import org.onap.policy.std.MatchStore;
34 import org.onap.policy.std.Matches;
35 import org.onap.policy.std.StdPDPNotification;
36
37 /**
38  * The class <code>MatchStoreTest</code> contains tests for the class <code>{@link MatchStore}</code>.
39  *
40  * @generatedBy CodePro at 6/1/16 1:41 PM
41  * @version $Revision: 1.0 $
42  */
43 public class MatchStoreTest {
44
45         /**
46          * Run the PDPNotification checkMatch(PDPNotification) method test.
47          *
48          * @throws Exception
49          *
50          * @generatedBy CodePro at 6/1/16 1:41 PM
51          */
52         @Test
53         public void testCheckMatch_1()
54                 throws Exception {
55                 PDPNotification oldNotification = null;
56
57                 PDPNotification result = MatchStore.checkMatch(oldNotification);
58
59                 // add additional test code here
60                 // An unexpected exception was thrown in user code while executing this test:
61                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
62                 assertNull(result);
63         }
64
65         /**
66          * Run the PDPNotification checkMatch(PDPNotification) method test.
67          *
68          * @throws Exception
69          *
70          * @generatedBy CodePro at 6/1/16 1:41 PM
71          */
72         @Test
73         public void testCheckMatch_2()
74                 throws Exception {
75                 PDPNotification oldNotification = new StdPDPNotification();
76
77                 PDPNotification result = MatchStore.checkMatch(oldNotification);
78
79                 // add additional test code here
80                 // An unexpected exception was thrown in user code while executing this test:
81                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
82                 assertNotNull(result);
83         }
84
85         /**
86          * Run the PDPNotification checkMatch(PDPNotification) method test.
87          *
88          * @throws Exception
89          *
90          * @generatedBy CodePro at 6/1/16 1:41 PM
91          */
92         @Test
93         public void testCheckMatch_3()
94                 throws Exception {
95                 PDPNotification oldNotification = new StdPDPNotification();
96
97                 PDPNotification result = MatchStore.checkMatch(oldNotification);
98
99                 // add additional test code here
100                 // An unexpected exception was thrown in user code while executing this test:
101                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
102                 assertNotNull(result);
103         }
104
105         /**
106          * Run the PDPNotification checkMatch(PDPNotification) method test.
107          *
108          * @throws Exception
109          *
110          * @generatedBy CodePro at 6/1/16 1:41 PM
111          */
112         @Test
113         public void testCheckMatch_4()
114                 throws Exception {
115                 PDPNotification oldNotification = new StdPDPNotification();
116
117                 PDPNotification result = MatchStore.checkMatch(oldNotification);
118
119                 // add additional test code here
120                 // An unexpected exception was thrown in user code while executing this test:
121                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
122                 assertNotNull(result);
123         }
124
125         /**
126          * Run the PDPNotification checkMatch(PDPNotification) method test.
127          *
128          * @throws Exception
129          *
130          * @generatedBy CodePro at 6/1/16 1:41 PM
131          */
132         @Test
133         public void testCheckMatch_5()
134                 throws Exception {
135                 PDPNotification oldNotification = new StdPDPNotification();
136
137                 PDPNotification result = MatchStore.checkMatch(oldNotification);
138
139                 // add additional test code here
140                 // An unexpected exception was thrown in user code while executing this test:
141                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
142                 assertNotNull(result);
143         }
144
145         /**
146          * Run the PDPNotification checkMatch(PDPNotification) method test.
147          *
148          * @throws Exception
149          *
150          * @generatedBy CodePro at 6/1/16 1:41 PM
151          */
152         @Test
153         public void testCheckMatch_6()
154                 throws Exception {
155                 PDPNotification oldNotification = new StdPDPNotification();
156
157                 PDPNotification result = MatchStore.checkMatch(oldNotification);
158
159                 // add additional test code here
160                 // An unexpected exception was thrown in user code while executing this test:
161                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
162                 assertNotNull(result);
163         }
164
165         /**
166          * Run the PDPNotification checkMatch(PDPNotification) method test.
167          *
168          * @throws Exception
169          *
170          * @generatedBy CodePro at 6/1/16 1:41 PM
171          */
172         @Test
173         public void testCheckMatch_7()
174                 throws Exception {
175                 PDPNotification oldNotification = new StdPDPNotification();
176
177                 PDPNotification result = MatchStore.checkMatch(oldNotification);
178
179                 // add additional test code here
180                 // An unexpected exception was thrown in user code while executing this test:
181                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
182                 assertNotNull(result);
183         }
184
185         /**
186          * Run the PDPNotification checkMatch(PDPNotification) method test.
187          *
188          * @throws Exception
189          *
190          * @generatedBy CodePro at 6/1/16 1:41 PM
191          */
192         @Test
193         public void testCheckMatch_8()
194                 throws Exception {
195                 PDPNotification oldNotification = new StdPDPNotification();
196
197                 PDPNotification result = MatchStore.checkMatch(oldNotification);
198
199                 // add additional test code here
200                 // An unexpected exception was thrown in user code while executing this test:
201                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
202                 assertNotNull(result);
203         }
204
205         /**
206          * Run the PDPNotification checkMatch(PDPNotification) method test.
207          *
208          * @throws Exception
209          *
210          * @generatedBy CodePro at 6/1/16 1:41 PM
211          */
212         @Test
213         public void testCheckMatch_9()
214                 throws Exception {
215                 PDPNotification oldNotification = new StdPDPNotification();
216
217                 PDPNotification result = MatchStore.checkMatch(oldNotification);
218
219                 // add additional test code here
220                 // An unexpected exception was thrown in user code while executing this test:
221                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
222                 assertNotNull(result);
223         }
224
225         /**
226          * Run the PDPNotification checkMatch(PDPNotification) method test.
227          *
228          * @throws Exception
229          *
230          * @generatedBy CodePro at 6/1/16 1:41 PM
231          */
232         @Test
233         public void testCheckMatch_10()
234                 throws Exception {
235                 PDPNotification oldNotification = new StdPDPNotification();
236
237                 PDPNotification result = MatchStore.checkMatch(oldNotification);
238
239                 // add additional test code here
240                 // An unexpected exception was thrown in user code while executing this test:
241                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
242                 assertNotNull(result);
243         }
244
245         /**
246          * Run the PDPNotification checkMatch(PDPNotification) method test.
247          *
248          * @throws Exception
249          *
250          * @generatedBy CodePro at 6/1/16 1:41 PM
251          */
252         @Test
253         public void testCheckMatch_11()
254                 throws Exception {
255                 PDPNotification oldNotification = new StdPDPNotification();
256
257                 PDPNotification result = MatchStore.checkMatch(oldNotification);
258
259                 // add additional test code here
260                 // An unexpected exception was thrown in user code while executing this test:
261                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
262                 assertNotNull(result);
263         }
264
265         /**
266          * Run the PDPNotification checkMatch(PDPNotification) method test.
267          *
268          * @throws Exception
269          *
270          * @generatedBy CodePro at 6/1/16 1:41 PM
271          */
272         @Test
273         public void testCheckMatch_12()
274                 throws Exception {
275                 PDPNotification oldNotification = new StdPDPNotification();
276
277                 PDPNotification result = MatchStore.checkMatch(oldNotification);
278
279                 // add additional test code here
280                 // An unexpected exception was thrown in user code while executing this test:
281                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
282                 assertNotNull(result);
283         }
284
285         /**
286          * Run the PDPNotification checkMatch(PDPNotification) method test.
287          *
288          * @throws Exception
289          *
290          * @generatedBy CodePro at 6/1/16 1:41 PM
291          */
292         @Test
293         public void testCheckMatch_13()
294                 throws Exception {
295                 PDPNotification oldNotification = new StdPDPNotification();
296
297                 PDPNotification result = MatchStore.checkMatch(oldNotification);
298
299                 // add additional test code here
300                 // An unexpected exception was thrown in user code while executing this test:
301                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
302                 assertNotNull(result);
303         }
304
305         /**
306          * Run the PDPNotification checkMatch(PDPNotification) method test.
307          *
308          * @throws Exception
309          *
310          * @generatedBy CodePro at 6/1/16 1:41 PM
311          */
312         @Test
313         public void testCheckMatch_14()
314                 throws Exception {
315                 PDPNotification oldNotification = new StdPDPNotification();
316
317                 PDPNotification result = MatchStore.checkMatch(oldNotification);
318
319                 // add additional test code here
320                 // An unexpected exception was thrown in user code while executing this test:
321                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
322                 assertNotNull(result);
323         }
324
325         /**
326          * Run the PDPNotification checkMatch(PDPNotification) method test.
327          *
328          * @throws Exception
329          *
330          * @generatedBy CodePro at 6/1/16 1:41 PM
331          */
332         @Test
333         public void testCheckMatch_15()
334                 throws Exception {
335                 PDPNotification oldNotification = new StdPDPNotification();
336
337                 PDPNotification result = MatchStore.checkMatch(oldNotification);
338
339                 // add additional test code here
340                 // An unexpected exception was thrown in user code while executing this test:
341                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
342                 assertNotNull(result);
343         }
344
345         /**
346          * Run the PDPNotification checkMatch(PDPNotification) method test.
347          *
348          * @throws Exception
349          *
350          * @generatedBy CodePro at 6/1/16 1:41 PM
351          */
352         @Test
353         public void testCheckMatch_16()
354                 throws Exception {
355                 PDPNotification oldNotification = new StdPDPNotification();
356
357                 PDPNotification result = MatchStore.checkMatch(oldNotification);
358
359                 // add additional test code here
360                 // An unexpected exception was thrown in user code while executing this test:
361                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
362                 assertNotNull(result);
363         }
364
365         /**
366          * Run the HashSet<Matches> getMatchStore() method test.
367          *
368          * @throws Exception
369          *
370          * @generatedBy CodePro at 6/1/16 1:41 PM
371          */
372         @Test
373         public void testGetMatchStore_1()
374                 throws Exception {
375
376                 Set<Matches> result = MatchStore.getMatchStore();
377
378                 // add additional test code here
379                 // An unexpected exception was thrown in user code while executing this test:
380                 //    java.lang.ExceptionInInitializerError
381                 //       at org.apache.log4j.Logger.getLogger(Logger.java:104)
382                 //       at org.onap.policy.std.MatchStore.<clinit>(MatchStore.java:15)
383                 assertNotNull(result);
384         }
385
386         /**
387          * Run the void storeMatch(Matches) method test.
388          *
389          * @throws Exception
390          *
391          * @generatedBy CodePro at 6/1/16 1:41 PM
392          */
393         @Test
394         public void testStoreMatch_1()
395                 throws Exception {
396                 Matches newMatch = new Matches();
397                 newMatch.setConfigName("");
398                 newMatch.setOnapName("");
399
400                 MatchStore.storeMatch(newMatch);
401
402                 // add additional test code here
403                 // An unexpected exception was thrown in user code while executing this test:
404                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
405         }
406
407         /**
408          * Run the void storeMatch(Matches) method test.
409          *
410          * @throws Exception
411          *
412          * @generatedBy CodePro at 6/1/16 1:41 PM
413          */
414         @Test
415         public void testStoreMatch_2()
416                 throws Exception {
417                 Matches newMatch = new Matches();
418                 newMatch.setConfigName("");
419                 newMatch.setOnapName("");
420
421                 MatchStore.storeMatch(newMatch);
422
423                 // add additional test code here
424                 // An unexpected exception was thrown in user code while executing this test:
425                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
426         }
427
428         /**
429          * Run the void storeMatch(Matches) method test.
430          *
431          * @throws Exception
432          *
433          * @generatedBy CodePro at 6/1/16 1:41 PM
434          */
435         @Test
436         public void testStoreMatch_3()
437                 throws Exception {
438                 Matches newMatch = new Matches();
439                 newMatch.setConfigName("");
440                 newMatch.setOnapName("");
441
442                 MatchStore.storeMatch(newMatch);
443
444                 // add additional test code here
445                 // An unexpected exception was thrown in user code while executing this test:
446                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
447         }
448
449         /**
450          * Run the void storeMatch(Matches) method test.
451          *
452          * @throws Exception
453          *
454          * @generatedBy CodePro at 6/1/16 1:41 PM
455          */
456         @Test
457         public void testStoreMatch_4()
458                 throws Exception {
459                 Matches newMatch = new Matches();
460                 newMatch.setConfigAttributes(new Hashtable<String, String>());
461                 newMatch.setConfigName("");
462                 newMatch.setOnapName("");
463
464                 MatchStore.storeMatch(newMatch);
465
466                 // add additional test code here
467                 // An unexpected exception was thrown in user code while executing this test:
468                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
469         }
470
471         /**
472          * Run the void storeMatch(Matches) method test.
473          *
474          * @throws Exception
475          *
476          * @generatedBy CodePro at 6/1/16 1:41 PM
477          */
478         @Test
479         public void testStoreMatch_5()
480                 throws Exception {
481                 Matches newMatch = new Matches();
482                 newMatch.setConfigAttributes(new Hashtable<String, String>());
483                 newMatch.setConfigName("");
484                 newMatch.setOnapName("");
485
486                 MatchStore.storeMatch(newMatch);
487
488                 // add additional test code here
489                 // An unexpected exception was thrown in user code while executing this test:
490                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
491         }
492
493         /**
494          * Run the void storeMatch(Matches) method test.
495          *
496          * @throws Exception
497          *
498          * @generatedBy CodePro at 6/1/16 1:41 PM
499          */
500         @Test
501         public void testStoreMatch_6()
502                 throws Exception {
503                 Matches newMatch = new Matches();
504                 newMatch.setConfigAttributes(new Hashtable<String, String>());
505                 newMatch.setConfigName("");
506                 newMatch.setOnapName("");
507
508                 MatchStore.storeMatch(newMatch);
509
510                 // add additional test code here
511                 // An unexpected exception was thrown in user code while executing this test:
512                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
513         }
514
515         /**
516          * Run the void storeMatch(Matches) method test.
517          *
518          * @throws Exception
519          *
520          * @generatedBy CodePro at 6/1/16 1:41 PM
521          */
522         @Test
523         public void testStoreMatch_7()
524                 throws Exception {
525                 Matches newMatch = new Matches();
526                 newMatch.setConfigAttributes(new Hashtable<String, String>());
527                 newMatch.setConfigName("");
528                 newMatch.setOnapName("");
529
530                 MatchStore.storeMatch(newMatch);
531
532                 // add additional test code here
533                 // An unexpected exception was thrown in user code while executing this test:
534                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
535         }
536
537         /**
538          * Run the void storeMatch(Matches) method test.
539          *
540          * @throws Exception
541          *
542          * @generatedBy CodePro at 6/1/16 1:41 PM
543          */
544         @Test
545         public void testStoreMatch_8()
546                 throws Exception {
547                 Matches newMatch = new Matches();
548                 newMatch.setConfigName("");
549                 newMatch.setOnapName("");
550
551                 MatchStore.storeMatch(newMatch);
552
553                 // add additional test code here
554                 // An unexpected exception was thrown in user code while executing this test:
555                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
556         }
557
558         /**
559          * Run the void storeMatch(Matches) method test.
560          *
561          * @throws Exception
562          *
563          * @generatedBy CodePro at 6/1/16 1:41 PM
564          */
565         @Test
566         public void testStoreMatch_9()
567                 throws Exception {
568                 Matches newMatch = new Matches();
569                 newMatch.setOnapName("");
570
571                 MatchStore.storeMatch(newMatch);
572
573                 // add additional test code here
574                 // An unexpected exception was thrown in user code while executing this test:
575                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
576         }
577
578         /**
579          * Run the void storeMatch(Matches) method test.
580          *
581          * @throws Exception
582          *
583          * @generatedBy CodePro at 6/1/16 1:41 PM
584          */
585         @Test
586         public void testStoreMatch_10()
587                 throws Exception {
588                 Matches newMatch = new Matches();
589                 newMatch.setConfigAttributes(new Hashtable<String, String>());
590                 newMatch.setConfigName("");
591                 newMatch.setOnapName("");
592
593                 MatchStore.storeMatch(newMatch);
594
595                 // add additional test code here
596                 // An unexpected exception was thrown in user code while executing this test:
597                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
598         }
599
600         /**
601          * Run the void storeMatch(Matches) method test.
602          *
603          * @throws Exception
604          *
605          * @generatedBy CodePro at 6/1/16 1:41 PM
606          */
607         @Test
608         public void testStoreMatch_11()
609                 throws Exception {
610                 Matches newMatch = new Matches();
611                 newMatch.setConfigAttributes(new Hashtable<String, String>());
612                 newMatch.setConfigName("");
613                 newMatch.setOnapName("");
614
615                 MatchStore.storeMatch(newMatch);
616
617                 // add additional test code here
618                 // An unexpected exception was thrown in user code while executing this test:
619                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
620         }
621
622         /**
623          * Run the void storeMatch(Matches) method test.
624          *
625          * @throws Exception
626          *
627          * @generatedBy CodePro at 6/1/16 1:41 PM
628          */
629         @Test
630         public void testStoreMatch_12()
631                 throws Exception {
632                 Matches newMatch = new Matches();
633                 newMatch.setConfigAttributes(new Hashtable<String, String>());
634                 newMatch.setConfigName("");
635                 newMatch.setOnapName("");
636
637                 MatchStore.storeMatch(newMatch);
638
639                 // add additional test code here
640                 // An unexpected exception was thrown in user code while executing this test:
641                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
642         }
643
644         /**
645          * Run the void storeMatch(Matches) method test.
646          *
647          * @throws Exception
648          *
649          * @generatedBy CodePro at 6/1/16 1:41 PM
650          */
651         @Test
652         public void testStoreMatch_13()
653                 throws Exception {
654                 Matches newMatch = new Matches();
655                 newMatch.setConfigAttributes(new Hashtable<String, String>());
656                 newMatch.setConfigName("");
657                 newMatch.setOnapName("");
658
659                 MatchStore.storeMatch(newMatch);
660
661                 // add additional test code here
662                 // An unexpected exception was thrown in user code while executing this test:
663                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
664         }
665
666         /**
667          * Run the void storeMatch(Matches) method test.
668          *
669          * @throws Exception
670          *
671          * @generatedBy CodePro at 6/1/16 1:41 PM
672          */
673         @Test
674         public void testStoreMatch_14()
675                 throws Exception {
676                 Matches newMatch = new Matches();
677                 newMatch.setConfigAttributes(new Hashtable<String, String>());
678                 newMatch.setConfigName("");
679                 newMatch.setOnapName("");
680
681                 MatchStore.storeMatch(newMatch);
682
683                 // add additional test code here
684                 // An unexpected exception was thrown in user code while executing this test:
685                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
686         }
687
688         /**
689          * Run the void storeMatch(Matches) method test.
690          *
691          * @throws Exception
692          *
693          * @generatedBy CodePro at 6/1/16 1:41 PM
694          */
695         @Test
696         public void testStoreMatch_15()
697                 throws Exception {
698                 Matches newMatch = new Matches();
699
700                 MatchStore.storeMatch(newMatch);
701
702                 // add additional test code here
703                 // An unexpected exception was thrown in user code while executing this test:
704                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
705         }
706
707         /**
708          * Run the void storeMatch(Matches) method test.
709          *
710          * @throws Exception
711          *
712          * @generatedBy CodePro at 6/1/16 1:41 PM
713          */
714         @Test
715         public void testStoreMatch_16()
716                 throws Exception {
717                 Matches newMatch = null;
718
719                 MatchStore.storeMatch(newMatch);
720
721                 // add additional test code here
722                 // An unexpected exception was thrown in user code while executing this test:
723                 //    java.lang.NoClassDefFoundError: Could not initialize class org.onap.policy.std.MatchStore
724         }
725
726         /**
727          * Perform pre-test initialization.
728          *
729          * @throws Exception
730          *         if the initialization fails for some reason
731          *
732          * @generatedBy CodePro at 6/1/16 1:41 PM
733          */
734         @Before
735         public void setUp()
736                 throws Exception {
737                 // add additional set up code here
738         }
739
740         /**
741          * Perform post-test clean-up.
742          *
743          * @throws Exception
744          *         if the clean-up fails for some reason
745          *
746          * @generatedBy CodePro at 6/1/16 1:41 PM
747          */
748         @After
749         public void tearDown()
750                 throws Exception {
751                 // Add additional tear down code here
752         }
753
754         /**
755          * Launch the test.
756          *
757          * @param args the command line arguments
758          *
759          * @generatedBy CodePro at 6/1/16 1:41 PM
760          */
761         public static void main(String[] args) {
762                 new org.junit.runner.JUnitCore().run(MatchStoreTest.class);
763         }
764 }