Initial OpenECOMP MSO commit
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / adapters / tenantrest / CreateTenantErrorESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 09:11:09 GMT 2016
4  */
5
6 package org.openecomp.mso.adapters.tenantrest;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10
11 import org.openecomp.mso.openstack.exceptions.MsoExceptionCategory;
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 CreateTenantErrorESTest extends CreateTenantErrorESTestscaffolding {
18
19   @Test(timeout = 4000)
20   public void test0()  throws Throwable  {
21       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
22       CreateTenantError createTenantError0 = new CreateTenantError("1lR", msoExceptionCategory0, true);
23       Boolean boolean0 = createTenantError0.getRolledBack();
24       assertTrue(boolean0);
25   }
26
27   @Test(timeout = 4000)
28   public void test1()  throws Throwable  {
29       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
30       CreateTenantError createTenantError0 = new CreateTenantError("]n~ZI>O", msoExceptionCategory0, false);
31       Boolean boolean0 = createTenantError0.getRolledBack();
32       assertFalse(boolean0);
33   }
34
35   @Test(timeout = 4000)
36   public void test2()  throws Throwable  {
37       CreateTenantError createTenantError0 = new CreateTenantError("1lR");
38       String string0 = createTenantError0.getMessage();
39       assertEquals("1lR", string0);
40   }
41
42   @Test(timeout = 4000)
43   public void test3()  throws Throwable  {
44       CreateTenantError createTenantError0 = new CreateTenantError("1lR");
45       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
46       createTenantError0.setCategory(msoExceptionCategory0);
47       MsoExceptionCategory msoExceptionCategory1 = createTenantError0.getCategory();
48       assertEquals(MsoExceptionCategory.OPENSTACK, msoExceptionCategory1);
49   }
50
51   @Test(timeout = 4000)
52   public void test4()  throws Throwable  {
53       CreateTenantError createTenantError0 = new CreateTenantError();
54       assertNull(createTenantError0.getMessage());
55   }
56
57   @Test(timeout = 4000)
58   public void test5()  throws Throwable  {
59       CreateTenantError createTenantError0 = new CreateTenantError("1lR");
60       createTenantError0.setRolledBack((Boolean) null);
61       assertNull(createTenantError0.getCategory());
62   }
63
64   @Test(timeout = 4000)
65   public void test6()  throws Throwable  {
66       CreateTenantError createTenantError0 = new CreateTenantError("1lR");
67       Boolean boolean0 = createTenantError0.getRolledBack();
68       assertNull(boolean0);
69   }
70
71   @Test(timeout = 4000)
72   public void test7()  throws Throwable  {
73       CreateTenantError createTenantError0 = new CreateTenantError("1lR");
74       createTenantError0.getCategory();
75   }
76
77   @Test(timeout = 4000)
78   public void test8()  throws Throwable  {
79       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
80       CreateTenantError createTenantError0 = new CreateTenantError((String) null, msoExceptionCategory0, false);
81       String string0 = createTenantError0.getMessage();
82       assertNull(string0);
83   }
84
85   @Test(timeout = 4000)
86   public void test9()  throws Throwable  {
87       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
88       CreateTenantError createTenantError0 = new CreateTenantError((String) null, msoExceptionCategory0, false);
89       createTenantError0.setMessage("");
90       String string0 = createTenantError0.getMessage();
91       assertEquals("", string0);
92   }
93 }