2 * This file was automatically generated by EvoSuite
3 * Mon Feb 20 14:08:11 GMT 2017
6 package org.openecomp.mso.adapters.sdncrest;
9 import static org.junit.Assert.*;
10 import static org.evosuite.shaded.org.mockito.Mockito.*;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.evosuite.runtime.ViolatedAssumptionAnswer;
15 import org.junit.runner.RunWith;
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class SDNCServiceRequestESTest extends SDNCServiceRequestESTestscaffolding {
21 public void test00() throws Throwable {
22 RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
23 ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
24 doReturn((String) null).when(serviceInformation0).toString();
25 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest("org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", "org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", "", "{", "org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", requestInformation0, serviceInformation0, "6`.", "{");
26 sDNCServiceRequest0.getServiceInformation();
27 assertEquals("{", sDNCServiceRequest0.getSDNCService());
28 assertEquals("{", sDNCServiceRequest0.getSDNCServiceData());
29 assertEquals("org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", sDNCServiceRequest0.getSDNCOperation());
30 assertEquals("6`.", sDNCServiceRequest0.getSDNCServiceDataType());
34 public void test01() throws Throwable {
35 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
36 sDNCServiceRequest0.setSDNCServiceDataType("2u]\"aLx");
37 String string0 = sDNCServiceRequest0.getSDNCServiceDataType();
38 assertEquals("2u]\"aLx", string0);
42 public void test02() throws Throwable {
43 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
44 sDNCServiceRequest0.setSDNCServiceData("}=uO{e7dUj.<");
45 String string0 = sDNCServiceRequest0.getSDNCServiceData();
46 assertEquals("}=uO{e7dUj.<", string0);
50 public void test03() throws Throwable {
51 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
52 sDNCServiceRequest0.setSDNCServiceData("");
53 String string0 = sDNCServiceRequest0.getSDNCServiceData();
54 assertEquals("", string0);
58 public void test04() throws Throwable {
59 RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
60 ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
61 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest("STATIC", "STATIC", "", "", "STATIC", requestInformation0, serviceInformation0, "STATIC", "+VFy
\7fyH0:WXAf=Y+|K");
62 String string0 = sDNCServiceRequest0.getSDNCService();
63 assertEquals("", string0);
64 assertEquals("STATIC", sDNCServiceRequest0.getSDNCServiceDataType());
65 assertEquals("STATIC", sDNCServiceRequest0.getSDNCOperation());
66 assertEquals("+VFy
\7fyH0:WXAf=Y+|K", sDNCServiceRequest0.getSDNCServiceData());
70 public void test05() throws Throwable {
71 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
72 String string0 = sDNCServiceRequest0.getSDNCOperation();
77 public void test06() throws Throwable {
78 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
79 sDNCServiceRequest0.setSDNCOperation("");
80 String string0 = sDNCServiceRequest0.getSDNCOperation();
81 assertEquals("", string0);
85 public void test07() throws Throwable {
86 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
87 RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
88 doReturn((String) null).when(requestInformation0).toString();
89 sDNCServiceRequest0.setRequestInformation(requestInformation0);
90 RequestInformation requestInformation1 = sDNCServiceRequest0.getRequestInformation();
91 assertSame(requestInformation1, requestInformation0);
95 public void test08() throws Throwable {
96 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
97 String string0 = sDNCServiceRequest0.getSDNCServiceDataType();
101 @Test(timeout = 4000)
102 public void test09() throws Throwable {
103 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
104 String string0 = sDNCServiceRequest0.getSDNCService();
108 @Test(timeout = 4000)
109 public void test10() throws Throwable {
110 RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
111 ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
112 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest("STATIC", "STATIC", "", "", "STATIC", requestInformation0, serviceInformation0, "STATIC", "+VFy
\7fyH0:WXAf=Y+|K");
113 String string0 = sDNCServiceRequest0.getSDNCOperation();
114 assertEquals("", sDNCServiceRequest0.getSDNCService());
115 assertEquals("+VFy
\7fyH0:WXAf=Y+|K", sDNCServiceRequest0.getSDNCServiceData());
116 assertEquals("STATIC", string0);
117 assertEquals("STATIC", sDNCServiceRequest0.getSDNCServiceDataType());
120 @Test(timeout = 4000)
121 public void test11() throws Throwable {
122 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
123 ServiceInformation serviceInformation0 = sDNCServiceRequest0.getServiceInformation();
124 assertNull(serviceInformation0);
127 @Test(timeout = 4000)
128 public void test12() throws Throwable {
129 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
130 RequestInformation requestInformation0 = sDNCServiceRequest0.getRequestInformation();
131 assertNull(requestInformation0);
134 @Test(timeout = 4000)
135 public void test13() throws Throwable {
136 RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
137 ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
138 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest("33M*~O'k?", "33M*~O'k?", "33M*~O'k?", "33M*~O'k?", "33M*~O'k?", requestInformation0, serviceInformation0, "33M*~O'k?", "[t[");
139 sDNCServiceRequest0.setServiceInformation((ServiceInformation) null);
140 assertEquals("33M*~O'k?", sDNCServiceRequest0.getSDNCService());
141 assertEquals("[t[", sDNCServiceRequest0.getSDNCServiceData());
142 assertEquals("33M*~O'k?", sDNCServiceRequest0.getSDNCOperation());
143 assertEquals("33M*~O'k?", sDNCServiceRequest0.getSDNCServiceDataType());
146 @Test(timeout = 4000)
147 public void test14() throws Throwable {
148 RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
149 ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
150 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest("", "M6Oxa*g8~:)0BdUFX/", "org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", "M6Oxa*g8~:)0BdUFX/", "org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", requestInformation0, serviceInformation0, "", "TWqSFP>PXW");
151 String string0 = sDNCServiceRequest0.getSDNCServiceDataType();
152 assertEquals("org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", sDNCServiceRequest0.getSDNCOperation());
153 assertEquals("TWqSFP>PXW", sDNCServiceRequest0.getSDNCServiceData());
154 assertEquals("", string0);
155 assertEquals("M6Oxa*g8~:)0BdUFX/", sDNCServiceRequest0.getSDNCService());
158 @Test(timeout = 4000)
159 public void test15() throws Throwable {
160 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
161 String string0 = sDNCServiceRequest0.getSDNCServiceData();
165 @Test(timeout = 4000)
166 public void test16() throws Throwable {
167 SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
168 sDNCServiceRequest0.setSDNCService("-3eOw~BRI3K>O");
169 String string0 = sDNCServiceRequest0.getSDNCService();
170 assertEquals("-3eOw~BRI3K>O", string0);