[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / PolicyEngineAPI / src / test / java / org / onap / policy / std / test / StdPolicyConfigTest.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 java.util.Hashtable;
24 import java.util.Map;
25 import java.util.Properties;
26
27 import javax.json.JsonObject;
28
29 import org.junit.*;
30 import org.onap.policy.api.PolicyConfigStatus;
31 import org.onap.policy.api.PolicyType;
32 import org.onap.policy.std.StdPolicyConfig;
33
34 import static org.junit.Assert.*;
35
36 import org.w3c.dom.Document;
37
38 /**
39  * The class <code>StdPolicyConfigTest</code> contains tests for the class <code>{@link StdPolicyConfig}</code>.
40  *
41  * @generatedBy CodePro at 6/1/16 1:41 PM
42  * @version $Revision: 1.0 $
43  */
44 public class StdPolicyConfigTest {
45         /**
46          * Run the Map<String, String> getMatchingConditions() method test.
47          *
48          * @throws Exception
49          *
50          * @generatedBy CodePro at 6/1/16 1:41 PM
51          */
52         @Test
53         public void testGetMatchingConditions_1()
54                 throws Exception {
55                 StdPolicyConfig fixture = new StdPolicyConfig();
56                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
57                 fixture.setDocument((Document) null);
58                 fixture.setResponseAttributes(new Hashtable<String, String>());
59                 fixture.setPolicyVersion("");
60                 fixture.setOther("");
61                 fixture.setPolicyType(PolicyType.JSON);
62                 fixture.setPolicyName("");
63                 fixture.setProperties(new Properties());
64                 fixture.setJsonObject((JsonObject) null);
65                 fixture.setMatchingConditions(new Hashtable<String, String>());
66
67                 Map<String, String> result = fixture.getMatchingConditions();
68
69                 // add additional test code here
70                 assertNotNull(result);
71                 assertEquals(0, result.size());
72         }
73
74         /**
75          * Run the String getPolicyConfigMessage() method test.
76          *
77          * @throws Exception
78          *
79          * @generatedBy CodePro at 6/1/16 1:41 PM
80          */
81         @Test
82         public void testGetPolicyConfigMessage_1()
83                 throws Exception {
84                 StdPolicyConfig fixture = new StdPolicyConfig();
85                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
86                 fixture.setDocument((Document) null);
87                 fixture.setResponseAttributes(new Hashtable<String, String>());
88                 fixture.setPolicyVersion("");
89                 fixture.setOther("");
90                 fixture.setPolicyType(PolicyType.JSON);
91                 fixture.setPolicyName("");
92                 fixture.setProperties(new Properties());
93                 fixture.setJsonObject((JsonObject) null);
94                 fixture.setMatchingConditions(new Hashtable<String, String>());
95
96                 String result = fixture.getPolicyConfigMessage();
97
98                 // add additional test code here
99                 assertEquals("", result);
100         }
101
102         /**
103          * Run the PolicyConfigStatus getPolicyConfigStatus() method test.
104          *
105          * @throws Exception
106          *
107          * @generatedBy CodePro at 6/1/16 1:41 PM
108          */
109         @Test
110         public void testGetPolicyConfigStatus_1()
111                 throws Exception {
112                 StdPolicyConfig fixture = new StdPolicyConfig();
113                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
114                 fixture.setDocument((Document) null);
115                 fixture.setResponseAttributes(new Hashtable<String, String>());
116                 fixture.setPolicyVersion("");
117                 fixture.setOther("");
118                 fixture.setPolicyType(PolicyType.JSON);
119                 fixture.setPolicyName("");
120                 fixture.setProperties(new Properties());
121                 fixture.setJsonObject((JsonObject) null);
122                 fixture.setMatchingConditions(new Hashtable<String, String>());
123
124                 PolicyConfigStatus result = fixture.getPolicyConfigStatus();
125
126                 // add additional test code here
127                 assertNotNull(result);
128                 assertEquals("not_found", result.toString());
129                 assertEquals("CONFIG_NOT_FOUND", result.name());
130                 assertEquals(1, result.ordinal());
131         }
132
133         /**
134          * Run the String getPolicyName() method test.
135          *
136          * @throws Exception
137          *
138          * @generatedBy CodePro at 6/1/16 1:41 PM
139          */
140         @Test
141         public void testGetPolicyName_1()
142                 throws Exception {
143                 StdPolicyConfig fixture = new StdPolicyConfig();
144                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
145                 fixture.setDocument((Document) null);
146                 fixture.setResponseAttributes(new Hashtable<String, String>());
147                 fixture.setPolicyVersion("");
148                 fixture.setOther("");
149                 fixture.setPolicyType(PolicyType.JSON);
150                 fixture.setPolicyName("");
151                 fixture.setProperties(new Properties());
152                 fixture.setJsonObject((JsonObject) null);
153                 fixture.setMatchingConditions(new Hashtable<String, String>());
154
155                 String result = fixture.getPolicyName();
156
157                 // add additional test code here
158                 assertEquals("", result);
159         }
160
161         /**
162          * Run the String getPolicyName() method test.
163          *
164          * @throws Exception
165          *
166          * @generatedBy CodePro at 6/1/16 1:41 PM
167          */
168         @Test
169         public void testGetPolicyName_2()
170                 throws Exception {
171                 StdPolicyConfig fixture = new StdPolicyConfig();
172                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
173                 fixture.setDocument((Document) null);
174                 fixture.setResponseAttributes(new Hashtable<String, String>());
175                 fixture.setPolicyVersion("");
176                 fixture.setOther("");
177                 fixture.setPolicyType(PolicyType.JSON);
178                 fixture.setPolicyName((String) null);
179                 fixture.setProperties(new Properties());
180                 fixture.setJsonObject((JsonObject) null);
181                 fixture.setMatchingConditions(new Hashtable<String, String>());
182
183                 String result = fixture.getPolicyName();
184
185                 // add additional test code here
186                 assertEquals(null, result);
187         }
188
189         /**
190          * Run the String getPolicyName() method test.
191          *
192          * @throws Exception
193          *
194          * @generatedBy CodePro at 6/1/16 1:41 PM
195          */
196         @Test
197         public void testGetPolicyName_3()
198                 throws Exception {
199                 StdPolicyConfig fixture = new StdPolicyConfig();
200                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
201                 fixture.setDocument((Document) null);
202                 fixture.setResponseAttributes(new Hashtable<String, String>());
203                 fixture.setPolicyVersion("");
204                 fixture.setOther("");
205                 fixture.setPolicyType(PolicyType.JSON);
206                 fixture.setPolicyName("");
207                 fixture.setProperties(new Properties());
208                 fixture.setJsonObject((JsonObject) null);
209                 fixture.setMatchingConditions(new Hashtable<String, String>());
210
211                 String result = fixture.getPolicyName();
212
213                 // add additional test code here
214                 assertEquals("", result);
215         }
216
217         /**
218          * Run the String getPolicyVersion() method test.
219          *
220          * @throws Exception
221          *
222          * @generatedBy CodePro at 6/1/16 1:41 PM
223          */
224         @Test
225         public void testGetPolicyVersion_1()
226                 throws Exception {
227                 StdPolicyConfig fixture = new StdPolicyConfig();
228                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
229                 fixture.setDocument((Document) null);
230                 fixture.setResponseAttributes(new Hashtable<String, String>());
231                 fixture.setPolicyVersion("");
232                 fixture.setOther("");
233                 fixture.setPolicyType(PolicyType.JSON);
234                 fixture.setPolicyName("");
235                 fixture.setProperties(new Properties());
236                 fixture.setJsonObject((JsonObject) null);
237                 fixture.setMatchingConditions(new Hashtable<String, String>());
238
239                 String result = fixture.getPolicyVersion();
240
241                 // add additional test code here
242                 assertEquals("", result);
243         }
244
245         /**
246          * Run the Map<String, String> getResponseAttributes() method test.
247          *
248          * @throws Exception
249          *
250          * @generatedBy CodePro at 6/1/16 1:41 PM
251          */
252         @Test
253         public void testGetResponseAttributes_1()
254                 throws Exception {
255                 StdPolicyConfig fixture = new StdPolicyConfig();
256                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
257                 fixture.setDocument((Document) null);
258                 fixture.setResponseAttributes(new Hashtable<String, String>());
259                 fixture.setPolicyVersion("");
260                 fixture.setOther("");
261                 fixture.setPolicyType(PolicyType.JSON);
262                 fixture.setPolicyName("");
263                 fixture.setProperties(new Properties());
264                 fixture.setJsonObject((JsonObject) null);
265                 fixture.setMatchingConditions(new Hashtable<String, String>());
266
267                 Map<String, String> result = fixture.getResponseAttributes();
268
269                 // add additional test code here
270                 assertNotNull(result);
271                 assertEquals(0, result.size());
272         }
273
274         /**
275          * Run the PolicyType getType() method test.
276          *
277          * @throws Exception
278          *
279          * @generatedBy CodePro at 6/1/16 1:41 PM
280          */
281         @Test
282         public void testGetType_1()
283                 throws Exception {
284                 StdPolicyConfig fixture = new StdPolicyConfig();
285                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
286                 fixture.setDocument((Document) null);
287                 fixture.setResponseAttributes(new Hashtable<String, String>());
288                 fixture.setPolicyVersion("");
289                 fixture.setOther("");
290                 fixture.setPolicyType(PolicyType.JSON);
291                 fixture.setPolicyName("");
292                 fixture.setProperties(new Properties());
293                 fixture.setJsonObject((JsonObject) null);
294                 fixture.setMatchingConditions(new Hashtable<String, String>());
295
296                 PolicyType result = fixture.getType();
297
298                 // add additional test code here
299                 assertNotNull(result);
300                 assertEquals("json", result.toString());
301                 assertEquals("JSON", result.name());
302                 assertEquals(1, result.ordinal());
303         }
304
305         /**
306          * Run the void setConfigStatus(String) method test.
307          *
308          * @throws Exception
309          *
310          * @generatedBy CodePro at 6/1/16 1:41 PM
311          */
312         @Test
313         public void testSetConfigStatus_1()
314                 throws Exception {
315                 StdPolicyConfig fixture = new StdPolicyConfig();
316                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
317                 fixture.setDocument((Document) null);
318                 fixture.setResponseAttributes(new Hashtable<String, String>());
319                 fixture.setPolicyVersion("");
320                 fixture.setOther("");
321                 fixture.setPolicyType(PolicyType.JSON);
322                 fixture.setPolicyName("");
323                 fixture.setProperties(new Properties());
324                 fixture.setJsonObject((JsonObject) null);
325                 fixture.setMatchingConditions(new Hashtable<String, String>());
326                 String configStatus = "";
327
328                 fixture.setConfigStatus(configStatus);
329
330                 // add additional test code here
331         }
332
333         /**
334          * Run the void setConfigStatus(String,PolicyConfigStatus) method test.
335          *
336          * @throws Exception
337          *
338          * @generatedBy CodePro at 6/1/16 1:41 PM
339          */
340         @Test
341         public void testSetConfigStatus_2()
342                 throws Exception {
343                 StdPolicyConfig fixture = new StdPolicyConfig();
344                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
345                 fixture.setDocument((Document) null);
346                 fixture.setResponseAttributes(new Hashtable<String, String>());
347                 fixture.setPolicyVersion("");
348                 fixture.setOther("");
349                 fixture.setPolicyType(PolicyType.JSON);
350                 fixture.setPolicyName("");
351                 fixture.setProperties(new Properties());
352                 fixture.setJsonObject((JsonObject) null);
353                 fixture.setMatchingConditions(new Hashtable<String, String>());
354                 String configStatus = "";
355                 PolicyConfigStatus policyConfigStatus = PolicyConfigStatus.CONFIG_NOT_FOUND;
356
357                 fixture.setConfigStatus(configStatus, policyConfigStatus);
358
359                 // add additional test code here
360         }
361
362         /**
363          * Run the void setDocument(Document) method test.
364          *
365          * @throws Exception
366          *
367          * @generatedBy CodePro at 6/1/16 1:41 PM
368          */
369         @Test
370         public void testSetDocument_1()
371                 throws Exception {
372                 StdPolicyConfig fixture = new StdPolicyConfig();
373                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
374                 fixture.setDocument((Document) null);
375                 fixture.setResponseAttributes(new Hashtable<String, String>());
376                 fixture.setPolicyVersion("");
377                 fixture.setOther("");
378                 fixture.setPolicyType(PolicyType.JSON);
379                 fixture.setPolicyName("");
380                 fixture.setProperties(new Properties());
381                 fixture.setJsonObject((JsonObject) null);
382                 fixture.setMatchingConditions(new Hashtable<String, String>());
383                 Document document = null;
384
385                 fixture.setDocument(document);
386
387                 // add additional test code here
388         }
389
390         /**
391          * Run the void setJsonObject(JsonObject) method test.
392          *
393          * @throws Exception
394          *
395          * @generatedBy CodePro at 6/1/16 1:41 PM
396          */
397         @Test
398         public void testSetJsonObject_1()
399                 throws Exception {
400                 StdPolicyConfig fixture = new StdPolicyConfig();
401                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
402                 fixture.setDocument((Document) null);
403                 fixture.setResponseAttributes(new Hashtable<String, String>());
404                 fixture.setPolicyVersion("");
405                 fixture.setOther("");
406                 fixture.setPolicyType(PolicyType.JSON);
407                 fixture.setPolicyName("");
408                 fixture.setProperties(new Properties());
409                 fixture.setJsonObject((JsonObject) null);
410                 fixture.setMatchingConditions(new Hashtable<String, String>());
411                 JsonObject jsonObject = null;
412
413                 fixture.setJsonObject(jsonObject);
414
415                 // add additional test code here
416         }
417
418         /**
419          * Run the void setMatchingConditions(Map<String,String>) method test.
420          *
421          * @throws Exception
422          *
423          * @generatedBy CodePro at 6/1/16 1:41 PM
424          */
425         @Test
426         public void testSetMatchingConditions_1()
427                 throws Exception {
428                 StdPolicyConfig fixture = new StdPolicyConfig();
429                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
430                 fixture.setDocument((Document) null);
431                 fixture.setResponseAttributes(new Hashtable<String, String>());
432                 fixture.setPolicyVersion("");
433                 fixture.setOther("");
434                 fixture.setPolicyType(PolicyType.JSON);
435                 fixture.setPolicyName("");
436                 fixture.setProperties(new Properties());
437                 fixture.setJsonObject((JsonObject) null);
438                 fixture.setMatchingConditions(new Hashtable<String, String>());
439                 Map<String, String> matchingConditions = new Hashtable<String, String>();
440
441                 fixture.setMatchingConditions(matchingConditions);
442
443                 // add additional test code here
444         }
445
446         /**
447          * Run the void setOther(String) method test.
448          *
449          * @throws Exception
450          *
451          * @generatedBy CodePro at 6/1/16 1:41 PM
452          */
453         @Test
454         public void testSetOther_1()
455                 throws Exception {
456                 StdPolicyConfig fixture = new StdPolicyConfig();
457                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
458                 fixture.setDocument((Document) null);
459                 fixture.setResponseAttributes(new Hashtable<String, String>());
460                 fixture.setPolicyVersion("");
461                 fixture.setOther("");
462                 fixture.setPolicyType(PolicyType.JSON);
463                 fixture.setPolicyName("");
464                 fixture.setProperties(new Properties());
465                 fixture.setJsonObject((JsonObject) null);
466                 fixture.setMatchingConditions(new Hashtable<String, String>());
467                 String other = "";
468
469                 fixture.setOther(other);
470
471                 // add additional test code here
472         }
473
474         /**
475          * Run the void setPolicyConfigStatus(PolicyConfigStatus) method test.
476          *
477          * @throws Exception
478          *
479          * @generatedBy CodePro at 6/1/16 1:41 PM
480          */
481         @Test
482         public void testSetPolicyConfigStatus_1()
483                 throws Exception {
484                 StdPolicyConfig fixture = new StdPolicyConfig();
485                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
486                 fixture.setDocument((Document) null);
487                 fixture.setResponseAttributes(new Hashtable<String, String>());
488                 fixture.setPolicyVersion("");
489                 fixture.setOther("");
490                 fixture.setPolicyType(PolicyType.JSON);
491                 fixture.setPolicyName("");
492                 fixture.setProperties(new Properties());
493                 fixture.setJsonObject((JsonObject) null);
494                 fixture.setMatchingConditions(new Hashtable<String, String>());
495                 PolicyConfigStatus policyConfigStatus = PolicyConfigStatus.CONFIG_NOT_FOUND;
496
497                 fixture.setPolicyConfigStatus(policyConfigStatus);
498
499                 // add additional test code here
500         }
501
502         /**
503          * Run the void setPolicyName(String) method test.
504          *
505          * @throws Exception
506          *
507          * @generatedBy CodePro at 6/1/16 1:41 PM
508          */
509         @Test
510         public void testSetPolicyName_1()
511                 throws Exception {
512                 StdPolicyConfig fixture = new StdPolicyConfig();
513                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
514                 fixture.setDocument((Document) null);
515                 fixture.setResponseAttributes(new Hashtable<String, String>());
516                 fixture.setPolicyVersion("");
517                 fixture.setOther("");
518                 fixture.setPolicyType(PolicyType.JSON);
519                 fixture.setPolicyName("");
520                 fixture.setProperties(new Properties());
521                 fixture.setJsonObject((JsonObject) null);
522                 fixture.setMatchingConditions(new Hashtable<String, String>());
523                 String policyName = "";
524
525                 fixture.setPolicyName(policyName);
526
527                 // add additional test code here
528         }
529
530         /**
531          * Run the void setPolicyType(PolicyType) method test.
532          *
533          * @throws Exception
534          *
535          * @generatedBy CodePro at 6/1/16 1:41 PM
536          */
537         @Test
538         public void testSetPolicyType_1()
539                 throws Exception {
540                 StdPolicyConfig fixture = new StdPolicyConfig();
541                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
542                 fixture.setDocument((Document) null);
543                 fixture.setResponseAttributes(new Hashtable<String, String>());
544                 fixture.setPolicyVersion("");
545                 fixture.setOther("");
546                 fixture.setPolicyType(PolicyType.JSON);
547                 fixture.setPolicyName("");
548                 fixture.setProperties(new Properties());
549                 fixture.setJsonObject((JsonObject) null);
550                 fixture.setMatchingConditions(new Hashtable<String, String>());
551                 PolicyType policyType = PolicyType.JSON;
552
553                 fixture.setPolicyType(policyType);
554
555                 // add additional test code here
556         }
557
558         /**
559          * Run the void setPolicyVersion(String) method test.
560          *
561          * @throws Exception
562          *
563          * @generatedBy CodePro at 6/1/16 1:41 PM
564          */
565         @Test
566         public void testSetPolicyVersion_1()
567                 throws Exception {
568                 StdPolicyConfig fixture = new StdPolicyConfig();
569                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
570                 fixture.setDocument((Document) null);
571                 fixture.setResponseAttributes(new Hashtable<String, String>());
572                 fixture.setPolicyVersion("");
573                 fixture.setOther("");
574                 fixture.setPolicyType(PolicyType.JSON);
575                 fixture.setPolicyName("");
576                 fixture.setProperties(new Properties());
577                 fixture.setJsonObject((JsonObject) null);
578                 fixture.setMatchingConditions(new Hashtable<String, String>());
579                 String policyVersion = "";
580
581                 fixture.setPolicyVersion(policyVersion);
582
583                 // add additional test code here
584         }
585
586         /**
587          * Run the void setProperties(Properties) method test.
588          *
589          * @throws Exception
590          *
591          * @generatedBy CodePro at 6/1/16 1:41 PM
592          */
593         @Test
594         public void testSetProperties_1()
595                 throws Exception {
596                 StdPolicyConfig fixture = new StdPolicyConfig();
597                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
598                 fixture.setDocument((Document) null);
599                 fixture.setResponseAttributes(new Hashtable<String, String>());
600                 fixture.setPolicyVersion("");
601                 fixture.setOther("");
602                 fixture.setPolicyType(PolicyType.JSON);
603                 fixture.setPolicyName("");
604                 fixture.setProperties(new Properties());
605                 fixture.setJsonObject((JsonObject) null);
606                 fixture.setMatchingConditions(new Hashtable<String, String>());
607                 Properties properties = new Properties();
608
609                 fixture.setProperties(properties);
610
611                 // add additional test code here
612         }
613
614         /**
615          * Run the void setResponseAttributes(Map<String,String>) method test.
616          *
617          * @throws Exception
618          *
619          * @generatedBy CodePro at 6/1/16 1:41 PM
620          */
621         @Test
622         public void testSetResponseAttributes_1()
623                 throws Exception {
624                 StdPolicyConfig fixture = new StdPolicyConfig();
625                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
626                 fixture.setDocument((Document) null);
627                 fixture.setResponseAttributes(new Hashtable<String, String>());
628                 fixture.setPolicyVersion("");
629                 fixture.setOther("");
630                 fixture.setPolicyType(PolicyType.JSON);
631                 fixture.setPolicyName("");
632                 fixture.setProperties(new Properties());
633                 fixture.setJsonObject((JsonObject) null);
634                 fixture.setMatchingConditions(new Hashtable<String, String>());
635                 Map<String, String> responseAttributes = new Hashtable<String, String>();
636
637                 fixture.setResponseAttributes(responseAttributes);
638
639                 // add additional test code here
640         }
641
642         /**
643          * Run the JsonObject toJSON() method test.
644          *
645          * @throws Exception
646          *
647          * @generatedBy CodePro at 6/1/16 1:41 PM
648          */
649         @Test
650         public void testToJSON_1()
651                 throws Exception {
652                 StdPolicyConfig fixture = new StdPolicyConfig();
653                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
654                 fixture.setDocument((Document) null);
655                 fixture.setResponseAttributes(new Hashtable<String, String>());
656                 fixture.setPolicyVersion("");
657                 fixture.setOther("");
658                 fixture.setPolicyType(PolicyType.JSON);
659                 fixture.setPolicyName("");
660                 fixture.setProperties(new Properties());
661                 fixture.setJsonObject((JsonObject) null);
662                 fixture.setMatchingConditions(new Hashtable<String, String>());
663
664                 JsonObject result = fixture.toJSON();
665
666                 // add additional test code here
667                 assertEquals(null, result);
668         }
669
670         /**
671          * Run the String toOther() method test.
672          *
673          * @throws Exception
674          *
675          * @generatedBy CodePro at 6/1/16 1:41 PM
676          */
677         @Test
678         public void testToOther_1()
679                 throws Exception {
680                 StdPolicyConfig fixture = new StdPolicyConfig();
681                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
682                 fixture.setDocument((Document) null);
683                 fixture.setResponseAttributes(new Hashtable<String, String>());
684                 fixture.setPolicyVersion("");
685                 fixture.setOther("");
686                 fixture.setPolicyType(PolicyType.JSON);
687                 fixture.setPolicyName("");
688                 fixture.setProperties(new Properties());
689                 fixture.setJsonObject((JsonObject) null);
690                 fixture.setMatchingConditions(new Hashtable<String, String>());
691
692                 String result = fixture.toOther();
693
694                 // add additional test code here
695                 assertEquals("", result);
696         }
697
698         /**
699          * Run the Properties toProperties() method test.
700          *
701          * @throws Exception
702          *
703          * @generatedBy CodePro at 6/1/16 1:41 PM
704          */
705         @Test
706         public void testToProperties_1()
707                 throws Exception {
708                 StdPolicyConfig fixture = new StdPolicyConfig();
709                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
710                 fixture.setDocument((Document) null);
711                 fixture.setResponseAttributes(new Hashtable<String, String>());
712                 fixture.setPolicyVersion("");
713                 fixture.setOther("");
714                 fixture.setPolicyType(PolicyType.JSON);
715                 fixture.setPolicyName("");
716                 fixture.setProperties(new Properties());
717                 fixture.setJsonObject((JsonObject) null);
718                 fixture.setMatchingConditions(new Hashtable<String, String>());
719
720                 Properties result = fixture.toProperties();
721
722                 // add additional test code here
723                 assertNotNull(result);
724                 assertEquals(0, result.size());
725         }
726
727         /**
728          * Run the String toString() method test.
729          *
730          * @throws Exception
731          *
732          * @generatedBy CodePro at 6/1/16 1:41 PM
733          */
734         @Test
735         public void testToString_1()
736                 throws Exception {
737                 StdPolicyConfig fixture = new StdPolicyConfig();
738                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
739                 fixture.setDocument((Document) null);
740                 fixture.setResponseAttributes(new Hashtable<String, String>());
741                 fixture.setPolicyVersion("");
742                 fixture.setOther("");
743                 fixture.setPolicyType(PolicyType.JSON);
744                 fixture.setPolicyName("test");
745                 fixture.setProperties(new Properties());
746                 fixture.setJsonObject((JsonObject) null);
747                 fixture.setMatchingConditions(new Hashtable<String, String>());
748
749                 String result = fixture.toString();
750
751                 // add additional test code here
752                 assertEquals("PolicyConfig [ policyConfigStatus=not_found, policyConfigMessage=, policyName=test]", result);
753         }
754
755         /**
756          * Run the Document toXML() method test.
757          *
758          * @throws Exception
759          *
760          * @generatedBy CodePro at 6/1/16 1:41 PM
761          */
762         @Test
763         public void testToXML_1()
764                 throws Exception {
765                 StdPolicyConfig fixture = new StdPolicyConfig();
766                 fixture.setConfigStatus("", PolicyConfigStatus.CONFIG_NOT_FOUND);
767                 fixture.setDocument((Document) null);
768                 fixture.setResponseAttributes(new Hashtable<String, String>());
769                 fixture.setPolicyVersion("");
770                 fixture.setOther("");
771                 fixture.setPolicyType(PolicyType.JSON);
772                 fixture.setPolicyName("");
773                 fixture.setProperties(new Properties());
774                 fixture.setJsonObject((JsonObject) null);
775                 fixture.setMatchingConditions(new Hashtable<String, String>());
776
777                 Document result = fixture.toXML();
778
779                 // add additional test code here
780                 assertEquals(null, result);
781         }
782
783         /**
784          * Perform pre-test initialization.
785          *
786          * @throws Exception
787          *         if the initialization fails for some reason
788          *
789          * @generatedBy CodePro at 6/1/16 1:41 PM
790          */
791         @Before
792         public void setUp()
793                 throws Exception {
794                 // add additional set up code here
795         }
796
797         /**
798          * Perform post-test clean-up.
799          *
800          * @throws Exception
801          *         if the clean-up fails for some reason
802          *
803          * @generatedBy CodePro at 6/1/16 1:41 PM
804          */
805         @After
806         public void tearDown()
807                 throws Exception {
808                 // Add additional tear down code here
809         }
810
811         /**
812          * Launch the test.
813          *
814          * @param args the command line arguments
815          *
816          * @generatedBy CodePro at 6/1/16 1:41 PM
817          */
818         public static void main(String[] args) {
819                 new org.junit.runner.JUnitCore().run(StdPolicyConfigTest.class);
820         }
821 }