Remove unnecessary use of Calendar.getInstance()
[so.git] / bpmn / MSOCoreBPMN / src / test / java / org / openecomp / mso / bpmn / core / json / JsonUtilsESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 11:28:11 GMT 2016
4  */
5
6 package org.openecomp.mso.bpmn.core.json;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10
11 import java.util.Iterator;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.json.JSONObject;
15 import org.junit.runner.RunWith;
16
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
18 public class JsonUtilsESTest extends JsonUtilsESTestscaffolding {
19
20   @Test(timeout = 4000)
21   public void test00()  throws Throwable  {
22       String string0 = JsonUtils.updJsonValue((String) null, "#", "#");
23       assertNull(string0);
24   }
25
26   @Test(timeout = 4000)
27   public void test01()  throws Throwable  {
28       String string0 = JsonUtils.getJsonValueForKey((JSONObject) null, "LPZc4`q5w]IQMS.^'3");
29       assertNull(string0);
30   }
31
32   @Test(timeout = 4000)
33   public void test02()  throws Throwable  {
34       String string0 = JsonUtils.getJsonParamValue("", ":bnv,&jl3bK", "");
35       assertNull(string0);
36   }
37
38   @Test(timeout = 4000)
39   public void test03()  throws Throwable  {
40       String string0 = JsonUtils.getJsonParamValue("", "", "tuw[9j$Sz");
41       assertNull(string0);
42   }
43
44   @Test(timeout = 4000)
45   public void test04()  throws Throwable  {
46       String string0 = JsonUtils.getJsonValue((String) null, "");
47       assertNull(string0);
48   }
49
50   @Test(timeout = 4000)
51   public void test05()  throws Throwable  {
52       String string0 = JsonUtils.addJsonValue((String) null, (String) null, (String) null);
53       assertNull(string0);
54   }
55
56   @Test(timeout = 4000)
57   public void test06()  throws Throwable  {
58       String string0 = JsonUtils.xml2json("", (Boolean) null);
59       assertNull(string0);
60   }
61
62   @Test(timeout = 4000)
63   public void test07()  throws Throwable  {
64       String string0 = JsonUtils.xml2json((String) null);
65       assertNull(string0);
66   }
67
68   @Test(timeout = 4000)
69   public void test08()  throws Throwable  {
70       String string0 = JsonUtils.updJsonValue("tV a^wGCAwX", "tV a^wGCAwX", "tV a^wGCAwX");
71       assertEquals("tV a^wGCAwX", string0);
72   }
73
74   @Test(timeout = 4000)
75   public void test09()  throws Throwable  {
76       String string0 = JsonUtils.updJsonValue("", "", "");
77       assertEquals("", string0);
78   }
79
80   @Test(timeout = 4000)
81   public void test10()  throws Throwable  {
82       Boolean boolean0 = Boolean.TRUE;
83       String string0 = JsonUtils.json2xml("", boolean0);
84       assertNull(string0);
85   }
86
87   @Test(timeout = 4000)
88   public void test11()  throws Throwable  {
89       String string0 = JsonUtils.getJsonValueForKey("java.io.StringWriter@0000000003", "#");
90       assertNull(string0);
91   }
92
93   @Test(timeout = 4000)
94   public void test12()  throws Throwable  {
95       Iterator<String> iterator0 = JsonUtils.getJsonIterator((String) null);
96       assertNull(iterator0);
97   }
98
99   @Test(timeout = 4000)
100   public void test13()  throws Throwable  {
101       String string0 = JsonUtils.delJsonValue("java.io.StringWriter@0000000003", "java.io.StringWriter@0000000003");
102       assertNotNull(string0);
103   }
104
105   @Test(timeout = 4000)
106   public void test14()  throws Throwable  {
107       String string0 = JsonUtils.delJsonValue("", (String) null);
108       assertEquals("", string0);
109   }
110
111   @Test(timeout = 4000)
112   public void test15()  throws Throwable  {
113       Boolean boolean0 = new Boolean(true);
114       String string0 = JsonUtils.xml2json("Y~N~%]", boolean0);
115       assertNotNull(string0);
116   }
117
118   @Test(timeout = 4000)
119   public void test16()  throws Throwable  {
120       String string0 = JsonUtils.delJsonValue((String) null, "/Y");
121       assertNull(string0);
122   }
123
124   @Test(timeout = 4000)
125   public void test17()  throws Throwable  {
126       String string0 = JsonUtils.updJsonValue((String) null, (String) null, "/Y");
127       assertNull(string0);
128   }
129
130   @Test(timeout = 4000)
131   public void test18()  throws Throwable  {
132       String string0 = JsonUtils.addJsonValue("java.io.StringWriter@0000000006", "/Y", (String) null);
133       assertNull(string0);
134   }
135
136   @Test(timeout = 4000)
137   public void test19()  throws Throwable  {
138       Boolean boolean0 = JsonUtils.jsonValueExists("getJsonValueForKey(): found value=", "/Y");
139       String string0 = JsonUtils.xml2json("getJsonValueForKey(): found value=", boolean0);
140       assertNotNull(string0);
141   }
142
143   @Test(timeout = 4000)
144   public void test20()  throws Throwable  {
145       String string0 = JsonUtils.json2xml(")?Fx+Bu:)1&$EZEmzoV");
146       assertNull(string0);
147   }
148
149   @Test(timeout = 4000)
150   public void test21()  throws Throwable  {
151       String string0 = JsonUtils.xml2json("java.io.StringWriter@0000000006");
152       assertNotNull(string0);
153   }
154
155   @Test(timeout = 4000)
156   public void test22()  throws Throwable  {
157       Iterator<String> iterator0 = JsonUtils.getJsonIterator("{+%2:*}\7f4");
158       assertNotNull(iterator0);
159   }
160
161   @Test(timeout = 4000)
162   public void test23()  throws Throwable  {
163       JsonUtils jsonUtils0 = new JsonUtils();
164   }
165 }