2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 09:11:09 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 CreateTenantErrorESTest extends CreateTenantErrorESTestscaffolding {
20 public void test0() throws Throwable {
21 MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK;
22 CreateTenantError createTenantError0 = new CreateTenantError("1lR", msoExceptionCategory0, true);
23 Boolean boolean0 = createTenantError0.getRolledBack();
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);
36 public void test2() throws Throwable {
37 CreateTenantError createTenantError0 = new CreateTenantError("1lR");
38 String string0 = createTenantError0.getMessage();
39 assertEquals("1lR", string0);
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);
52 public void test4() throws Throwable {
53 CreateTenantError createTenantError0 = new CreateTenantError();
54 assertNull(createTenantError0.getMessage());
58 public void test5() throws Throwable {
59 CreateTenantError createTenantError0 = new CreateTenantError("1lR");
60 createTenantError0.setRolledBack((Boolean) null);
61 assertNull(createTenantError0.getCategory());
65 public void test6() throws Throwable {
66 CreateTenantError createTenantError0 = new CreateTenantError("1lR");
67 Boolean boolean0 = createTenantError0.getRolledBack();
72 public void test7() throws Throwable {
73 CreateTenantError createTenantError0 = new CreateTenantError("1lR");
74 createTenantError0.getCategory();
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();
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);