aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/vnfrest/UpdateVfModuleResponseESTest.java
blob: 2d48c575799f57876e5f780eda851dc9dd25b7e8 (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
/*
 * This file was automatically generated by EvoSuite
 * Mon Nov 14 09:18:01 GMT 2016
 */

package org.openecomp.mso.adapters.vnfrest;

import org.junit.Test;
import static org.junit.Assert.*;

import java.util.HashMap;
import java.util.Map;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;

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

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse();
      String string0 = updateVfModuleResponse0.getVnfId();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("", "", "\"c2NA-]kge", (Map<String, String>) hashMap0, "");
      String string0 = updateVfModuleResponse0.getVnfId();
      assertEquals("\"c2NA-]kge", updateVfModuleResponse0.getVfModuleStackId());
      assertEquals("", updateVfModuleResponse0.getVfModuleId());
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse();
      String string0 = updateVfModuleResponse0.getVfModuleStackId();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("", "", "", (Map<String, String>) null, "eBT|~3\"z");
      updateVfModuleResponse0.getVfModuleOutputs();
      assertEquals("", updateVfModuleResponse0.getVfModuleStackId());
      assertEquals("", updateVfModuleResponse0.getVnfId());
      assertEquals("", updateVfModuleResponse0.getVfModuleId());
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse((String) null, (String) null, "", (Map<String, String>) hashMap0, (String) null);
      hashMap0.put((String) null, "");
      Map<String, String> map0 = updateVfModuleResponse0.getVfModuleOutputs();
      assertFalse(map0.isEmpty());
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse();
      String string0 = updateVfModuleResponse0.getVfModuleId();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("}t3zhbFZl^dGLS@6+", "}t3zhbFZl^dGLS@6+", "}t3zhbFZl^dGLS@6+", (Map<String, String>) hashMap0, "");
      String string0 = updateVfModuleResponse0.getVfModuleId();
      assertNotNull(string0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse();
      updateVfModuleResponse0.setVfModuleStackId("p|+");
      String string0 = updateVfModuleResponse0.getVfModuleStackId();
      assertEquals("p|+", string0);
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse((String) null, (String) null, "", (Map<String, String>) hashMap0, (String) null);
      String string0 = updateVfModuleResponse0.getVfModuleStackId();
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse((String) null, (String) null, "", (Map<String, String>) hashMap0, (String) null);
      updateVfModuleResponse0.setVnfId("trb");
      assertEquals("", updateVfModuleResponse0.getVfModuleStackId());
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("'o^@:C|OvN:", "'o^@:C|OvN:", "'o^@:C|OvN:", (Map<String, String>) hashMap0, "xcX3]w^");
      String string0 = updateVfModuleResponse0.getVnfId();
      assertEquals("'o^@:C|OvN:", updateVfModuleResponse0.getVfModuleStackId());
      assertEquals("'o^@:C|OvN:", updateVfModuleResponse0.getVfModuleId());
      assertEquals("'o^@:C|OvN:", string0);
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("lE0", "", "", (Map<String, String>) hashMap0, "");
      String string0 = updateVfModuleResponse0.getVfModuleId();
      assertEquals("", string0);
      assertEquals("lE0", updateVfModuleResponse0.getVnfId());
      assertEquals("", updateVfModuleResponse0.getVfModuleStackId());
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("", "", "", (Map<String, String>) null, "eBT|~3\"z");
      assertEquals("", updateVfModuleResponse0.getVfModuleId());
      
      updateVfModuleResponse0.setVfModuleId("");
      assertEquals("", updateVfModuleResponse0.getVnfId());
      assertEquals("", updateVfModuleResponse0.getVfModuleStackId());
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("", "", "", (Map<String, String>) null, "eBT|~3\"z");
      updateVfModuleResponse0.setVfModuleOutputs((Map<String, String>) null);
      assertEquals("", updateVfModuleResponse0.getVfModuleId());
      assertEquals("", updateVfModuleResponse0.getVnfId());
      assertEquals("", updateVfModuleResponse0.getVfModuleStackId());
  }

  @Test(timeout = 4000)
  public void test14()  throws Throwable  {
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      UpdateVfModuleResponse updateVfModuleResponse0 = new UpdateVfModuleResponse("'o^@:C|OvN:", "'o^@:C|OvN:", "'o^@:C|OvN:", (Map<String, String>) hashMap0, "xcX3]w^");
      updateVfModuleResponse0.getVfModuleOutputs();
      assertEquals("'o^@:C|OvN:", updateVfModuleResponse0.getVfModuleStackId());
      assertEquals("'o^@:C|OvN:", updateVfModuleResponse0.getVfModuleId());
      assertEquals("'o^@:C|OvN:", updateVfModuleResponse0.getVnfId());
  }
}