aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/sdncrest/SDNCServiceRequestESTest.java
blob: 5df036600a0635fa1a653a2100cf6cd8127db7ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
 * This file was automatically generated by EvoSuite
 * Mon Feb 20 14:08:11 GMT 2017
 */

package org.openecomp.mso.adapters.sdncrest;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;

import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.junit.runner.RunWith;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
public class SDNCServiceRequestESTest extends SDNCServiceRequestESTestscaffolding {

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
      ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
      doReturn((String) null).when(serviceInformation0).toString();
      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`.", "{");
      sDNCServiceRequest0.getServiceInformation();
      assertEquals("{", sDNCServiceRequest0.getSDNCService());
      assertEquals("{", sDNCServiceRequest0.getSDNCServiceData());
      assertEquals("org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", sDNCServiceRequest0.getSDNCOperation());
      assertEquals("6`.", sDNCServiceRequest0.getSDNCServiceDataType());
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      sDNCServiceRequest0.setSDNCServiceDataType("2u]\"aLx");
      String string0 = sDNCServiceRequest0.getSDNCServiceDataType();
      assertEquals("2u]\"aLx", string0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      sDNCServiceRequest0.setSDNCServiceData("}=uO{e7dUj.<");
      String string0 = sDNCServiceRequest0.getSDNCServiceData();
      assertEquals("}=uO{e7dUj.<", string0);
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      sDNCServiceRequest0.setSDNCServiceData("");
      String string0 = sDNCServiceRequest0.getSDNCServiceData();
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
      ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest("STATIC", "STATIC", "", "", "STATIC", requestInformation0, serviceInformation0, "STATIC", "+VFyyH0:WXAf=Y+|K");
      String string0 = sDNCServiceRequest0.getSDNCService();
      assertEquals("", string0);
      assertEquals("STATIC", sDNCServiceRequest0.getSDNCServiceDataType());
      assertEquals("STATIC", sDNCServiceRequest0.getSDNCOperation());
      assertEquals("+VFyyH0:WXAf=Y+|K", sDNCServiceRequest0.getSDNCServiceData());
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      String string0 = sDNCServiceRequest0.getSDNCOperation();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      sDNCServiceRequest0.setSDNCOperation("");
      String string0 = sDNCServiceRequest0.getSDNCOperation();
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
      doReturn((String) null).when(requestInformation0).toString();
      sDNCServiceRequest0.setRequestInformation(requestInformation0);
      RequestInformation requestInformation1 = sDNCServiceRequest0.getRequestInformation();
      assertSame(requestInformation1, requestInformation0);
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      String string0 = sDNCServiceRequest0.getSDNCServiceDataType();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      String string0 = sDNCServiceRequest0.getSDNCService();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
      ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest("STATIC", "STATIC", "", "", "STATIC", requestInformation0, serviceInformation0, "STATIC", "+VFyyH0:WXAf=Y+|K");
      String string0 = sDNCServiceRequest0.getSDNCOperation();
      assertEquals("", sDNCServiceRequest0.getSDNCService());
      assertEquals("+VFyyH0:WXAf=Y+|K", sDNCServiceRequest0.getSDNCServiceData());
      assertEquals("STATIC", string0);
      assertEquals("STATIC", sDNCServiceRequest0.getSDNCServiceDataType());
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      ServiceInformation serviceInformation0 = sDNCServiceRequest0.getServiceInformation();
      assertNull(serviceInformation0);
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      RequestInformation requestInformation0 = sDNCServiceRequest0.getRequestInformation();
      assertNull(requestInformation0);
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
      ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
      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[");
      sDNCServiceRequest0.setServiceInformation((ServiceInformation) null);
      assertEquals("33M*~O'k?", sDNCServiceRequest0.getSDNCService());
      assertEquals("[t[", sDNCServiceRequest0.getSDNCServiceData());
      assertEquals("33M*~O'k?", sDNCServiceRequest0.getSDNCOperation());
      assertEquals("33M*~O'k?", sDNCServiceRequest0.getSDNCServiceDataType());
  }

  @Test(timeout = 4000)
  public void test14()  throws Throwable  {
      RequestInformation requestInformation0 = mock(RequestInformation.class, new ViolatedAssumptionAnswer());
      ServiceInformation serviceInformation0 = mock(ServiceInformation.class, new ViolatedAssumptionAnswer());
      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");
      String string0 = sDNCServiceRequest0.getSDNCServiceDataType();
      assertEquals("org.openecomp.mso.adapters.sdncrest.SDNCServiceRequest", sDNCServiceRequest0.getSDNCOperation());
      assertEquals("TWqSFP>PXW", sDNCServiceRequest0.getSDNCServiceData());
      assertEquals("", string0);
      assertEquals("M6Oxa*g8~:)0BdUFX/", sDNCServiceRequest0.getSDNCService());
  }

  @Test(timeout = 4000)
  public void test15()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      String string0 = sDNCServiceRequest0.getSDNCServiceData();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test16()  throws Throwable  {
      SDNCServiceRequest sDNCServiceRequest0 = new SDNCServiceRequest();
      sDNCServiceRequest0.setSDNCService("-3eOw~BRI3K>O");
      String string0 = sDNCServiceRequest0.getSDNCService();
      assertEquals("-3eOw~BRI3K>O", string0);
  }
}