Initial OpenECOMP MSO commit
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / adapters / tenantrest / TenantExceptionResponseESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 09:25:22 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 TenantExceptionResponseESTest extends TenantExceptionResponseESTestscaffolding {
18
19   @Test(timeout = 4000)
20   public void test00()  throws Throwable  {
21       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
22       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse((String) null, msoExceptionCategory0, true);
23       Boolean boolean0 = tenantExceptionResponse0.getRolledBack();
24       assertTrue(boolean0);
25   }
26
27   @Test(timeout = 4000)
28   public void test01()  throws Throwable  {
29       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("sxH3DHvAo$");
30       String string0 = tenantExceptionResponse0.getMessage();
31       assertEquals("sxH3DHvAo$", string0);
32   }
33
34   @Test(timeout = 4000)
35   public void test02()  throws Throwable  {
36       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
37       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse((String) null, msoExceptionCategory0, true);
38       MsoExceptionCategory msoExceptionCategory1 = tenantExceptionResponse0.getCategory();
39       assertSame(msoExceptionCategory0, msoExceptionCategory1);
40   }
41
42   @Test(timeout = 4000)
43   public void test03()  throws Throwable  {
44       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
45       tenantExceptionResponse0.setMessage("1LGUz =Y?.wyJ");
46       assertNull(tenantExceptionResponse0.getCategory());
47   }
48
49   @Test(timeout = 4000)
50   public void test04()  throws Throwable  {
51       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
52       Boolean boolean0 = tenantExceptionResponse0.getRolledBack();
53       assertNull(boolean0);
54   }
55
56   @Test(timeout = 4000)
57   public void test05()  throws Throwable  {
58       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
59       tenantExceptionResponse0.setCategory((MsoExceptionCategory) null);
60       assertEquals("", tenantExceptionResponse0.getMessage());
61   }
62
63   @Test(timeout = 4000)
64   public void test06()  throws Throwable  {
65       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse();
66       String string0 = tenantExceptionResponse0.getMessage();
67       assertNull(string0);
68   }
69
70   @Test(timeout = 4000)
71   public void test07()  throws Throwable  {
72       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
73       String string0 = tenantExceptionResponse0.getMessage();
74       assertEquals("", string0);
75   }
76
77   @Test(timeout = 4000)
78   public void test08()  throws Throwable  {
79       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.INTERNAL;
80       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("", msoExceptionCategory0, false);
81       Boolean boolean0 = tenantExceptionResponse0.getRolledBack();
82       assertFalse(boolean0);
83   }
84
85   @Test(timeout = 4000)
86   public void test09()  throws Throwable  {
87       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
88       tenantExceptionResponse0.setRolledBack((Boolean) null);
89       assertNull(tenantExceptionResponse0.getCategory());
90   }
91
92   @Test(timeout = 4000)
93   public void test10()  throws Throwable  {
94       TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
95       tenantExceptionResponse0.getCategory();
96   }
97 }