Initial OpenECOMP MSO commit
[so.git] / adapters / mso-adapters-rest-interface / src / test / java / org / openecomp / mso / adapters / nwrest / NetworkExceptionResponseESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 09:19:39 GMT 2016
4  */
5
6 package org.openecomp.mso.adapters.nwrest;
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 NetworkExceptionResponseESTest extends NetworkExceptionResponseESTestscaffolding {
18
19   @Test(timeout = 4000)
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());
25       assertTrue(boolean0);
26   }
27
28   @Test(timeout = 4000)
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);
34   }
35
36   @Test(timeout = 4000)
37   public void test2()  throws Throwable  {
38       NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse("");
39       String string0 = networkExceptionResponse0.getMessage();
40       assertEquals("", string0);
41   }
42
43   @Test(timeout = 4000)
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);
50   }
51
52   @Test(timeout = 4000)
53   public void test4()  throws Throwable  {
54       NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
55       Boolean boolean0 = networkExceptionResponse0.getRolledBack();
56       assertNull(boolean0);
57   }
58
59   @Test(timeout = 4000)
60   public void test5()  throws Throwable  {
61       NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse("");
62       networkExceptionResponse0.getCategory();
63   }
64
65   @Test(timeout = 4000)
66   public void test6()  throws Throwable  {
67       NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
68       networkExceptionResponse0.setMessage("USERDATA");
69       String string0 = networkExceptionResponse0.getMessage();
70       assertEquals("USERDATA", string0);
71   }
72
73   @Test(timeout = 4000)
74   public void test7()  throws Throwable  {
75       NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
76       networkExceptionResponse0.setRolledBack((Boolean) null);
77       assertNull(networkExceptionResponse0.getCategory());
78   }
79
80   @Test(timeout = 4000)
81   public void test8()  throws Throwable  {
82       NetworkExceptionResponse networkExceptionResponse0 = new NetworkExceptionResponse();
83       String string0 = networkExceptionResponse0.getMessage();
84       assertNull(string0);
85   }
86 }