Initial OpenECOMP MSO commit
[so.git] / adapters / mso-vnf-adapter-async-client / src / test / java / org / openecomp / mso / adapters / vnf / async / client / VnfStatusESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 10:48:53 GMT 2016
4  */
5
6 package org.openecomp.mso.adapters.vnf.async.client;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11
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 VnfStatusESTest extends VnfStatusESTestscaffolding {
18
19   @Test(timeout = 4000)
20   public void test0()  throws Throwable  {
21       VnfStatus[] vnfStatusArray0 = VnfStatus.values();
22       assertNotNull(vnfStatusArray0);
23   }
24
25   @Test(timeout = 4000)
26   public void test2()  throws Throwable  {
27       // Undeclared exception!
28       try { 
29         VnfStatus.valueOf((String) null);
30         fail("Expecting exception: NullPointerException");
31       
32       } catch(NullPointerException e) {
33          //
34          // Name is null
35          //
36          verifyException("java.lang.Enum", e);
37       }
38   }
39
40   @Test(timeout = 4000)
41   public void test3()  throws Throwable  {
42       // Undeclared exception!
43       try { 
44         VnfStatus.valueOf("");
45         fail("Expecting exception: IllegalArgumentException");
46       
47       } catch(IllegalArgumentException e) {
48          //
49          // No enum constant org.openecomp.mso.adapters.vnf.async.client.VnfStatus.
50          //
51          verifyException("java.lang.Enum", e);
52       }
53   }
54
55   @Test(timeout = 4000)
56   public void test4()  throws Throwable  {
57       // Undeclared exception!
58       try { 
59         VnfStatus.fromValue((String) null);
60         fail("Expecting exception: NullPointerException");
61       
62       } catch(NullPointerException e) {
63          //
64          // Name is null
65          //
66          verifyException("java.lang.Enum", e);
67       }
68   }
69
70   @Test(timeout = 4000)
71   public void test5()  throws Throwable  {
72       // Undeclared exception!
73       try { 
74         VnfStatus.fromValue("");
75         fail("Expecting exception: IllegalArgumentException");
76       
77       } catch(IllegalArgumentException e) {
78          //
79          // No enum constant org.openecomp.mso.adapters.vnf.async.client.VnfStatus.
80          //
81          verifyException("java.lang.Enum", e);
82       }
83   }
84
85   @Test(timeout = 4000)
86   public void test7()  throws Throwable  {
87       VnfStatus vnfStatus0 = VnfStatus.NOTFOUND;
88       String string0 = vnfStatus0.value();
89       assertEquals("NOTFOUND", string0);
90   }
91 }