7a4a386cc31884570d5df71af482bba13b700018
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / adapters / vnfrest / VolumeGroupRollbackESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 09:18:37 GMT 2016
4  */
5
6 package org.openecomp.mso.adapters.vnfrest;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11
12 import org.openecomp.mso.entity.MsoRequest;
13 import org.evosuite.runtime.EvoRunner;
14 import org.evosuite.runtime.EvoRunnerParameters;
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 VolumeGroupRollbackESTest extends VolumeGroupRollbackESTestscaffolding {
19
20   @Test(timeout = 4000)
21   public void test00()  throws Throwable  {
22       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
23       volumeGroupRollback0.setVolumeGroupStackId("F");
24       volumeGroupRollback0.getVolumeGroupStackId();
25       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
26   }
27
28   @Test(timeout = 4000)
29   public void test01()  throws Throwable  {
30       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
31       volumeGroupRollback0.setVolumeGroupId("?4I<}KM\7f{|IP");
32       volumeGroupRollback0.getVolumeGroupId();
33       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
34   }
35
36   @Test(timeout = 4000)
37   public void test02()  throws Throwable  {
38       MsoRequest msoRequest0 = new MsoRequest("", "");
39       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback("", "", false, "", "", msoRequest0, "");
40       volumeGroupRollback0.getVolumeGroupId();
41       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
42   }
43
44   @Test(timeout = 4000)
45   public void test03()  throws Throwable  {
46       MsoRequest msoRequest0 = new MsoRequest();
47       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback("q\"(B{+Ht7bO5", "q\"(B{+Ht7bO5", false, "q\"(B{+Ht7bO5", "q\"(B{+Ht7bO5", msoRequest0, "q\"(B{+Ht7bO5");
48       volumeGroupRollback0.getTenantId();
49       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
50   }
51
52   @Test(timeout = 4000)
53   public void test04()  throws Throwable  {
54       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
55       volumeGroupRollback0.setTenantId("");
56       volumeGroupRollback0.getTenantId();
57       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
58   }
59
60   @Test(timeout = 4000)
61   public void test05()  throws Throwable  {
62       MsoRequest msoRequest0 = new MsoRequest();
63       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback("", "", true, "", "", msoRequest0, "");
64       volumeGroupRollback0.getMsoRequest();
65       assertTrue(volumeGroupRollback0.isVolumeGroupCreated());
66   }
67
68   @Test(timeout = 4000)
69   public void test06()  throws Throwable  {
70       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
71       volumeGroupRollback0.setMessageId("~O0>CjU'2WS");
72       volumeGroupRollback0.getMessageId();
73       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
74   }
75
76   @Test(timeout = 4000)
77   public void test07()  throws Throwable  {
78       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
79       volumeGroupRollback0.setMessageId("");
80       volumeGroupRollback0.getMessageId();
81       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
82   }
83
84   @Test(timeout = 4000)
85   public void test08()  throws Throwable  {
86       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
87       volumeGroupRollback0.setCloudSiteId("F");
88       volumeGroupRollback0.getCloudSiteId();
89       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
90   }
91
92   @Test(timeout = 4000)
93   public void test09()  throws Throwable  {
94       VolumeGroupRollback volumeGroupRollback0 = null;
95       try {
96         volumeGroupRollback0 = new VolumeGroupRollback((VolumeGroupRollback) null, "", "");
97         fail("Expecting exception: NullPointerException");
98       
99       } catch(NullPointerException e) {
100          //
101          // no message in exception (getMessage() returned null)
102          //
103          verifyException("org.openecomp.mso.adapters.vnfrest.VolumeGroupRollback", e);
104       }
105   }
106
107   @Test(timeout = 4000)
108   public void test10()  throws Throwable  {
109       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
110       volumeGroupRollback0.getMsoRequest();
111       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
112   }
113
114   @Test(timeout = 4000)
115   public void test11()  throws Throwable  {
116       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
117       boolean boolean0 = volumeGroupRollback0.isVolumeGroupCreated();
118       assertFalse(boolean0);
119   }
120
121   @Test(timeout = 4000)
122   public void test12()  throws Throwable  {
123       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
124       volumeGroupRollback0.getVolumeGroupId();
125       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
126   }
127
128   @Test(timeout = 4000)
129   public void test13()  throws Throwable  {
130       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
131       volumeGroupRollback0.getTenantId();
132       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
133   }
134
135   @Test(timeout = 4000)
136   public void test14()  throws Throwable  {
137       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
138       volumeGroupRollback0.getCloudSiteId();
139       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
140   }
141
142   @Test(timeout = 4000)
143   public void test15()  throws Throwable  {
144       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
145       volumeGroupRollback0.getMessageId();
146       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
147   }
148
149   @Test(timeout = 4000)
150   public void test16()  throws Throwable  {
151       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
152       volumeGroupRollback0.setCloudSiteId("");
153       volumeGroupRollback0.getCloudSiteId();
154       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
155   }
156
157   @Test(timeout = 4000)
158   public void test17()  throws Throwable  {
159       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
160       volumeGroupRollback0.getVolumeGroupStackId();
161       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
162   }
163
164   @Test(timeout = 4000)
165   public void test18()  throws Throwable  {
166       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
167       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
168       
169       volumeGroupRollback0.setVolumeGroupCreated(true);
170       boolean boolean0 = volumeGroupRollback0.isVolumeGroupCreated();
171       assertTrue(boolean0);
172   }
173
174   @Test(timeout = 4000)
175   public void test19()  throws Throwable  {
176       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
177       volumeGroupRollback0.setVolumeGroupStackId("");
178       volumeGroupRollback0.getVolumeGroupStackId();
179       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
180   }
181
182   @Test(timeout = 4000)
183   public void test20()  throws Throwable  {
184       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
185       MsoRequest msoRequest0 = new MsoRequest();
186       volumeGroupRollback0.setMsoRequest(msoRequest0);
187       assertFalse(volumeGroupRollback0.isVolumeGroupCreated());
188   }
189
190   @Test(timeout = 4000)
191   public void test21()  throws Throwable  {
192       VolumeGroupRollback volumeGroupRollback0 = new VolumeGroupRollback();
193       VolumeGroupRollback volumeGroupRollback1 = new VolumeGroupRollback(volumeGroupRollback0, "", "HC1I]xTWKN0*icHc]");
194       assertEquals("", volumeGroupRollback1.getVolumeGroupStackId());
195       assertFalse(volumeGroupRollback1.isVolumeGroupCreated());
196       assertEquals("HC1I]xTWKN0*icHc]", volumeGroupRollback1.getMessageId());
197   }
198 }