Merge "updated ARIA version"
[so.git] / adapters / mso-network-adapter-async-client / src / test / java / org / openecomp / mso / adapters / network / async / client / NetworkStatusESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 09:37:01 GMT 2016
4  */
5
6 package org.openecomp.mso.adapters.network.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 NetworkStatusESTest extends NetworkStatusESTestscaffolding {
18
19   @Test(timeout = 4000)
20   public void test0()  throws Throwable  {
21       NetworkStatus[] networkStatusArray0 = NetworkStatus.values();
22       assertNotNull(networkStatusArray0);
23   }
24
25   @Test(timeout = 4000)
26   public void test2()  throws Throwable  {
27       // Undeclared exception!
28       try { 
29         NetworkStatus.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         NetworkStatus.valueOf("RjP-NHISY|sp*/M");
45         fail("Expecting exception: IllegalArgumentException");
46       
47       } catch(IllegalArgumentException e) {
48          //
49          // No enum constant org.openecomp.mso.adapters.network.async.client.NetworkStatus.RjP-NHISY|sp*_/M
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         NetworkStatus.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         NetworkStatus.fromValue("");
75         fail("Expecting exception: IllegalArgumentException");
76       
77       } catch(IllegalArgumentException e) {
78          //
79          // No enum constant org.openecomp.mso.adapters.network.async.client.NetworkStatus.
80          //
81          verifyException("java.lang.Enum", e);
82       }
83   }
84
85   @Test(timeout = 4000)
86   public void test6()  throws Throwable  {
87       NetworkStatus networkStatus0 = NetworkStatus.ACTIVE;
88       String string0 = networkStatus0.value();
89       assertEquals("ACTIVE", string0);
90   }
91 }