Initial OpenECOMP MSO commit
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / adapters / tenantrest / CreateTenantResponseESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 09:18:27 GMT 2016
4  */
5
6 package org.openecomp.mso.adapters.tenantrest;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.junit.runner.RunWith;
15
16 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
17 public class CreateTenantResponseESTest extends CreateTenantResponseESTestscaffolding {
18
19   @Test(timeout = 4000)
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);
26   }
27
28   @Test(timeout = 4000)
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);
36   }
37
38   @Test(timeout = 4000)
39   public void test02()  throws Throwable  {
40       CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
41       createTenantResponse0.setTenantId("");
42       String string0 = createTenantResponse0.getTenantId();
43       assertEquals("", string0);
44   }
45
46   @Test(timeout = 4000)
47   public void test03()  throws Throwable  {
48       CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
49       Boolean boolean0 = createTenantResponse0.getTenantCreated();
50       assertNull(boolean0);
51   }
52
53   @Test(timeout = 4000)
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);
60   }
61
62   @Test(timeout = 4000)
63   public void test05()  throws Throwable  {
64       CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
65       createTenantResponse0.setCloudSiteId("");
66       String string0 = createTenantResponse0.getCloudSiteId();
67       assertEquals("", string0);
68   }
69
70   @Test(timeout = 4000)
71   public void test06()  throws Throwable  {
72       CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
73       createTenantResponse0.setTenantRollback((TenantRollback) null);
74       TenantRollback tenantRollback0 = createTenantResponse0.getTenantRollback();
75       assertNull(tenantRollback0);
76   }
77
78   @Test(timeout = 4000)
79   public void test07()  throws Throwable  {
80       CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
81       String string0 = createTenantResponse0.getTenantId();
82       assertNull(string0);
83   }
84
85   @Test(timeout = 4000)
86   public void test08()  throws Throwable  {
87       CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
88       TenantRollback tenantRollback0 = createTenantResponse0.getTenantRollback();
89       assertFalse(tenantRollback0.getTenantCreated());
90   }
91
92   @Test(timeout = 4000)
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();
98       assertTrue(boolean1);
99   }
100
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!
106       try { 
107         createTenantResponse0.toString();
108         fail("Expecting exception: NullPointerException");
109       
110       } catch(NullPointerException e) {
111          //
112          // no message in exception (getMessage() returned null)
113          //
114          verifyException("org.openecomp.mso.adapters.tenantrest.CreateTenantResponse", e);
115       }
116   }
117
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);
124   }
125
126   @Test(timeout = 4000)
127   public void test12()  throws Throwable  {
128       CreateTenantResponse createTenantResponse0 = new CreateTenantResponse();
129       String string0 = createTenantResponse0.getCloudSiteId();
130       assertNull(string0);
131   }
132
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);
139   }
140
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());
147   }
148 }