2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 09:19:39 GMT 2016
6 package org.openecomp.mso.adapters.nwrest;
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 NetworkExceptionResponseESTest extends NetworkExceptionResponseESTestscaffolding {
20 public void test0() throws Throwable {
21 MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.IO;
22 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse("('zix", msoExceptionCategory0, true, "3)w4.");
23 Boolean boolean0 = networkExceptionResponse0.getRolledBack();
24 assertEquals("('zix", networkExceptionResponse0.getMessage());
29 public void test1() throws Throwable {
30 MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.INTERNAL;
31 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse("9L(TNeou", msoExceptionCategory0, false, "9L(TNeou");
32 Boolean boolean0 = networkExceptionResponse0.getRolledBack();
33 assertFalse(boolean0);
37 public void test2() throws Throwable {
38 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse("");
39 String string0 = networkExceptionResponse0.getMessage();
40 assertEquals("", string0);
44 public void test3() throws Throwable {
45 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
46 MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.IO;
47 networkExceptionResponse0.setCategory(msoExceptionCategory0);
48 MsoExceptionCategory msoExceptionCategory1 = networkExceptionResponse0.getCategory();
49 assertEquals(MsoExceptionCategory.IO, msoExceptionCategory1);
53 public void test4() throws Throwable {
54 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
55 Boolean boolean0 = networkExceptionResponse0.getRolledBack();
60 public void test5() throws Throwable {
61 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse("");
62 networkExceptionResponse0.getCategory();
66 public void test6() throws Throwable {
67 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
68 networkExceptionResponse0.setMessage("USERDATA");
69 String string0 = networkExceptionResponse0.getMessage();
70 assertEquals("USERDATA", string0);
74 public void test7() throws Throwable {
75 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
76 networkExceptionResponse0.setRolledBack((Boolean) null);
77 assertNull(networkExceptionResponse0.getCategory());
81 public void test8() throws Throwable {
82 NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
83 String string0 = networkExceptionResponse0.getMessage();