diff options
Diffstat (limited to 'adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/tenantrest/CreateTenantErrorESTest.java')
-rw-r--r-- | adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/tenantrest/CreateTenantErrorESTest.java | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/tenantrest/CreateTenantErrorESTest.java b/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/tenantrest/CreateTenantErrorESTest.java new file mode 100644 index 0000000000..31981957f5 --- /dev/null +++ b/adapters/mso-adapters-rest-interface/src/test/java/org/openecomp/mso/adapters/tenantrest/CreateTenantErrorESTest.java @@ -0,0 +1,93 @@ +/* + * This file was automatically generated by EvoSuite + * Mon Nov 14 09:11:09 GMT 2016 + */ + +package org.openecomp.mso.adapters.tenantrest; + +import org.junit.Test; +import static org.junit.Assert.*; + +import org.openecomp.mso.openstack.exceptions.MsoExceptionCategory; +import org.evosuite.runtime.EvoRunner; +import org.evosuite.runtime.EvoRunnerParameters; +import org.junit.runner.RunWith; + +@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) +public class CreateTenantErrorESTest extends CreateTenantErrorESTestscaffolding { + + @Test(timeout = 4000) + public void test0() throws Throwable { + MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK; + CreateTenantError createTenantError0 = new CreateTenantError("1lR", msoExceptionCategory0, true); + Boolean boolean0 = createTenantError0.getRolledBack(); + assertTrue(boolean0); + } + + @Test(timeout = 4000) + public void test1() throws Throwable { + MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK; + CreateTenantError createTenantError0 = new CreateTenantError("]n~ZI>O", msoExceptionCategory0, false); + Boolean boolean0 = createTenantError0.getRolledBack(); + assertFalse(boolean0); + } + + @Test(timeout = 4000) + public void test2() throws Throwable { + CreateTenantError createTenantError0 = new CreateTenantError("1lR"); + String string0 = createTenantError0.getMessage(); + assertEquals("1lR", string0); + } + + @Test(timeout = 4000) + public void test3() throws Throwable { + CreateTenantError createTenantError0 = new CreateTenantError("1lR"); + MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK; + createTenantError0.setCategory(msoExceptionCategory0); + MsoExceptionCategory msoExceptionCategory1 = createTenantError0.getCategory(); + assertEquals(MsoExceptionCategory.OPENSTACK, msoExceptionCategory1); + } + + @Test(timeout = 4000) + public void test4() throws Throwable { + CreateTenantError createTenantError0 = new CreateTenantError(); + assertNull(createTenantError0.getMessage()); + } + + @Test(timeout = 4000) + public void test5() throws Throwable { + CreateTenantError createTenantError0 = new CreateTenantError("1lR"); + createTenantError0.setRolledBack((Boolean) null); + assertNull(createTenantError0.getCategory()); + } + + @Test(timeout = 4000) + public void test6() throws Throwable { + CreateTenantError createTenantError0 = new CreateTenantError("1lR"); + Boolean boolean0 = createTenantError0.getRolledBack(); + assertNull(boolean0); + } + + @Test(timeout = 4000) + public void test7() throws Throwable { + CreateTenantError createTenantError0 = new CreateTenantError("1lR"); + createTenantError0.getCategory(); + } + + @Test(timeout = 4000) + public void test8() throws Throwable { + MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK; + CreateTenantError createTenantError0 = new CreateTenantError((String) null, msoExceptionCategory0, false); + String string0 = createTenantError0.getMessage(); + assertNull(string0); + } + + @Test(timeout = 4000) + public void test9() throws Throwable { + MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.OPENSTACK; + CreateTenantError createTenantError0 = new CreateTenantError((String) null, msoExceptionCategory0, false); + createTenantError0.setMessage(""); + String string0 = createTenantError0.getMessage(); + assertEquals("", string0); + } +} |