2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 09:18:27 GMT 2016
6 package org.openecomp.mso.adapters.tenantrest;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.junit.runner.RunWith;
16 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
17 public class CreateTenantResponseESTest extends CreateTenantResponseESTestscaffolding {
20 public void test00() throws Throwable {
21 Boolean boolean0 = Boolean.valueOf((String) null);
22 TenantRollback tenantRollback0 = new TenantRollback();
23 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse("<MtZQZIH{-M@", "<MtZQZIH{-M@", boolean0, tenantRollback0);
24 String string0 = createTenantResponse0.toString();
25 assertEquals("CreateTenantResponse [cloudSiteId=<MtZQZIH{-M@, tenantId=<MtZQZIH{-M@, tenantCreated=false, tenantRollback=VnfRollback: cloud=null, tenant=null, tenantCreated=false]", string0);
29 public void test01() throws Throwable {
30 Boolean boolean0 = Boolean.valueOf((String) null);
31 TenantRollback tenantRollback0 = new TenantRollback();
32 tenantRollback0.setTenantCreated(true);
33 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse("<MtZQZIH{-M@", "<MtZQZIH{-M@", boolean0, tenantRollback0);
34 TenantRollback tenantRollback1 = createTenantResponse0.getTenantRollback();
35 assertSame(tenantRollback0, tenantRollback1);
39 public void test02() throws Throwable {
40 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
41 createTenantResponse0.setTenantId("");
42 String string0 = createTenantResponse0.getTenantId();
43 assertEquals("", string0);
47 public void test03() throws Throwable {
48 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
49 Boolean boolean0 = createTenantResponse0.getTenantCreated();
54 public void test04() throws Throwable {
55 Boolean boolean0 = Boolean.valueOf("");
56 TenantRollback tenantRollback0 = new TenantRollback();
57 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse("", "", boolean0, tenantRollback0);
58 Boolean boolean1 = createTenantResponse0.getTenantCreated();
59 assertFalse(boolean1);
63 public void test05() throws Throwable {
64 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
65 createTenantResponse0.setCloudSiteId("");
66 String string0 = createTenantResponse0.getCloudSiteId();
67 assertEquals("", string0);
71 public void test06() throws Throwable {
72 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
73 createTenantResponse0.setTenantRollback((TenantRollback) null);
74 TenantRollback tenantRollback0 = createTenantResponse0.getTenantRollback();
75 assertNull(tenantRollback0);
79 public void test07() throws Throwable {
80 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
81 String string0 = createTenantResponse0.getTenantId();
86 public void test08() throws Throwable {
87 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
88 TenantRollback tenantRollback0 = createTenantResponse0.getTenantRollback();
89 assertFalse(tenantRollback0.getTenantCreated());
93 public void test09() throws Throwable {
94 Boolean boolean0 = Boolean.valueOf(true);
95 TenantRollback tenantRollback0 = new TenantRollback();
96 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse("2@/.nLo", "2@/.nLo", boolean0, tenantRollback0);
97 Boolean boolean1 = createTenantResponse0.getTenantCreated();
101 @Test(timeout = 4000)
102 public void test10() throws Throwable {
103 Boolean boolean0 = new Boolean("");
104 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse("8{", "U<b`ZSrD;4T", boolean0, (TenantRollback) null);
105 // Undeclared exception!
107 createTenantResponse0.toString();
108 fail("Expecting exception: NullPointerException");
110 } catch(NullPointerException e) {
112 // no message in exception (getMessage() returned null)
114 verifyException("org.openecomp.mso.adapters.tenantrest.CreateTenantResponse", e);
118 @Test(timeout = 4000)
119 public void test11() throws Throwable {
120 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
121 createTenantResponse0.setCloudSiteId("uj>\"L98");
122 String string0 = createTenantResponse0.getCloudSiteId();
123 assertEquals("uj>\"L98", string0);
126 @Test(timeout = 4000)
127 public void test12() throws Throwable {
128 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
129 String string0 = createTenantResponse0.getCloudSiteId();
133 @Test(timeout = 4000)
134 public void test13() throws Throwable {
135 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
136 createTenantResponse0.setTenantId("uj>\"L98");
137 String string0 = createTenantResponse0.getTenantId();
138 assertEquals("uj>\"L98", string0);
141 @Test(timeout = 4000)
142 public void test14() throws Throwable {
143 CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
144 Boolean boolean0 = Boolean.valueOf((String) null);
145 createTenantResponse0.setTenantCreated(boolean0);
146 assertNull(createTenantResponse0.getTenantId());