2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 09:25:22 GMT 2016
6 package org.openecomp.mso.adapters.tenantrest;
9 import static org.junit.Assert.*;
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;
16 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
17 public class TenantExceptionResponseESTest extends TenantExceptionResponseESTestscaffolding {
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();
28 public void test01() throws Throwable {
29 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("sxH3DHvAo$");
30 String string0 = tenantExceptionResponse0.getMessage();
31 assertEquals("sxH3DHvAo$", string0);
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);
43 public void test03() throws Throwable {
44 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
45 tenantExceptionResponse0.setMessage("1LGUz =Y?.wyJ");
46 assertNull(tenantExceptionResponse0.getCategory());
50 public void test04() throws Throwable {
51 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
52 Boolean boolean0 = tenantExceptionResponse0.getRolledBack();
57 public void test05() throws Throwable {
58 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
59 tenantExceptionResponse0.setCategory((MsoExceptionCategory) null);
60 assertEquals("", tenantExceptionResponse0.getMessage());
64 public void test06() throws Throwable {
65 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse();
66 String string0 = tenantExceptionResponse0.getMessage();
71 public void test07() throws Throwable {
72 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
73 String string0 = tenantExceptionResponse0.getMessage();
74 assertEquals("", string0);
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);
86 public void test09() throws Throwable {
87 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
88 tenantExceptionResponse0.setRolledBack((Boolean) null);
89 assertNull(tenantExceptionResponse0.getCategory());
93 public void test10() throws Throwable {
94 TenantExceptionResponse tenantExceptionResponse0 = new TenantExceptionResponse("");
95 tenantExceptionResponse0.getCategory();