summaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/vnfrest/CreateVolumeGroupResponseESTest.java
blob: 141d7f8504af51836f115e51ad4723c5583adcb5 (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
/*
 * This file was automatically generated by EvoSuite
 * Mon Nov 14 09:22:14 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 CreateVolumeGroupResponseESTest extends CreateVolumeGroupResponseESTestscaffolding {

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      createVolumeGroupResponse0.setVolumeGroupStackId("#soQ+\"O.VGnL");
      String string0 = createVolumeGroupResponse0.getVolumeGroupStackId();
      assertEquals("#soQ+\"O.VGnL", string0);
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      createVolumeGroupResponse0.setVolumeGroupOutputs((Map<String, String>) null);
      Map<String, String> map0 = createVolumeGroupResponse0.getVolumeGroupOutputs();
      assertNull(map0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      HashMap<String, String> hashMap0 = new HashMap<String, String>();
      hashMap0.put(",MyEf", ",MyEf");
      createVolumeGroupResponse0.setVolumeGroupOutputs(hashMap0);
      Map<String, String> map0 = createVolumeGroupResponse0.getVolumeGroupOutputs();
      assertFalse(map0.isEmpty());
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      createVolumeGroupResponse0.setVolumeGroupId(".X(v-Tvwzh&");
      String string0 = createVolumeGroupResponse0.getVolumeGroupId();
      assertEquals(".X(v-Tvwzh&", string0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      createVolumeGroupResponse0.setVolumeGroupId("");
      String string0 = createVolumeGroupResponse0.getVolumeGroupId();
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      Boolean boolean0 = Boolean.valueOf(true);
      createVolumeGroupResponse0.setVolumeGroupCreated(boolean0);
      Boolean boolean1 = createVolumeGroupResponse0.getVolumeGroupCreated();
      assertTrue(boolean1);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      Boolean boolean0 = new Boolean("^MG80I,4g3M>=01Xp");
      createVolumeGroupResponse0.setVolumeGroupCreated(boolean0);
      Boolean boolean1 = createVolumeGroupResponse0.getVolumeGroupCreated();
      assertFalse(boolean1);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      createVolumeGroupResponse0.setVolumeGroupStackId("");
      String string0 = createVolumeGroupResponse0.getVolumeGroupStackId();
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      VolumeGroupRollback volumeGroupRollback0 = createVolumeGroupResponse0.getVolumeGroupRollback();
      volumeGroupRollback0.setVolumeGroupCreated(true);
      VolumeGroupRollback volumeGroupRollback1 = createVolumeGroupResponse0.getVolumeGroupRollback();
      assertSame(volumeGroupRollback1, volumeGroupRollback0);
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      createVolumeGroupResponse0.setVolumeGroupRollback((VolumeGroupRollback) null);
      VolumeGroupRollback volumeGroupRollback0 = createVolumeGroupResponse0.getVolumeGroupRollback();
      assertNull(volumeGroupRollback0);
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      Boolean boolean0 = createVolumeGroupResponse0.getVolumeGroupCreated();
      assertNull(boolean0);
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      String string0 = createVolumeGroupResponse0.getVolumeGroupStackId();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      String string0 = createVolumeGroupResponse0.getVolumeGroupId();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      Map<String, String> map0 = createVolumeGroupResponse0.getVolumeGroupOutputs();
      createVolumeGroupResponse0.setVolumeGroupOutputs(map0);
      assertNull(createVolumeGroupResponse0.getVolumeGroupId());
  }

  @Test(timeout = 4000)
  public void test14()  throws Throwable  {
      CreateVolumeGroupResponse createVolumeGroupResponse0 = new CreateVolumeGroupResponse();
      Map<String, String> map0 = createVolumeGroupResponse0.getVolumeGroupOutputs();
      CreateVolumeGroupResponse createVolumeGroupResponse1 = new CreateVolumeGroupResponse("", "", (Boolean) null, map0, (VolumeGroupRollback) null, "");
      assertEquals("", createVolumeGroupResponse1.getVolumeGroupStackId());
  }
}
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_224" bpmnElement="EndEvent_2"> <dc:Bounds height="36.0" width="36.0" x="416.0" y="535.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="434.0" y="576.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_292" bpmnElement="processBPMNException"> <dc:Bounds height="80.0" width="100.0" x="265.0" y="513.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_StartEvent_70" targetElement="_BPMNShape_ScriptTask_292"> <di:waypoint xsi:type="dc:Point" x="212.0" y="553.0"/> <di:waypoint xsi:type="dc:Point" x="265.0" y="553.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="233.0" y="553.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_292" targetElement="_BPMNShape_EndEvent_224"> <di:waypoint xsi:type="dc:Point" x="365.0" y="553.0"/> <di:waypoint xsi:type="dc:Point" x="416.0" y="553.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="385.0" y="553.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_301" bpmnElement="obtainServiceUrlByName"> <dc:Bounds height="80.0" width="100.0" x="528.0" y="59.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_233" bpmnElement="obtain" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="446.0" y="145.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="71.0" x="496.0" y="162.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_234" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="646.0" y="145.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="671.0" y="200.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="obtainById" sourceElement="_BPMNShape_ExclusiveGateway_233" targetElement="_BPMNShape_ScriptTask_289"> <di:waypoint xsi:type="dc:Point" x="471.0" y="195.0"/> <di:waypoint xsi:type="dc:Point" x="471.0" y="236.0"/> <di:waypoint xsi:type="dc:Point" x="528.0" y="237.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="16.0" x="476.0" y="207.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="obtainByName" sourceElement="_BPMNShape_ExclusiveGateway_233" targetElement="_BPMNShape_ScriptTask_301"> <di:waypoint xsi:type="dc:Point" x="471.0" y="145.0"/> <di:waypoint xsi:type="dc:Point" x="471.0" y="99.0"/> <di:waypoint xsi:type="dc:Point" x="528.0" y="99.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="40.0" x="471.0" y="115.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ScriptTask_301" targetElement="_BPMNShape_ExclusiveGateway_234"> <di:waypoint xsi:type="dc:Point" x="628.0" y="99.0"/> <di:waypoint xsi:type="dc:Point" x="671.0" y="99.0"/> <di:waypoint xsi:type="dc:Point" x="671.0" y="145.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="665.0" y="99.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_235" bpmnElement="serviceFoundCheck" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="738.0" y="145.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="59.0" x="735.0" y="125.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_16" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ExclusiveGateway_234" targetElement="_BPMNShape_ExclusiveGateway_235"> <di:waypoint xsi:type="dc:Point" x="696.0" y="170.0"/> <di:waypoint xsi:type="dc:Point" x="738.0" y="170.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="704.0" y="170.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_17" bpmnElement="foundYes" sourceElement="_BPMNShape_ExclusiveGateway_235" targetElement="_BPMNShape_ExclusiveGateway_228"> <di:waypoint xsi:type="dc:Point" x="763.0" y="195.0"/> <di:waypoint xsi:type="dc:Point" x="763.0" y="256.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="29.0" x="762.0" y="205.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="notFound" sourceElement="_BPMNShape_ExclusiveGateway_235" targetElement="_BPMNShape_EndEvent_229"> <di:waypoint xsi:type="dc:Point" x="788.0" y="170.0"/> <di:waypoint xsi:type="dc:Point" x="877.0" y="171.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="22.0" x="798.0" y="170.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_EndEvent_229" bpmnElement="EndEvent_3"> <dc:Bounds height="36.0" width="36.0" x="877.0" y="153.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="895.0" y="194.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </bpmn2:definitions>