Initial OpenECOMP MSO commit
[so.git] / adapters / mso-network-adapter-async-client / src / test / java / org / openecomp / mso / adapters / network / async / client / MsoExceptionCategoryESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 09:36: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 MsoExceptionCategoryESTest extends MsoExceptionCategoryESTestscaffolding {
18
19   @Test(timeout = 4000)
20   public void test0()  throws Throwable  {
21       MsoExceptionCategory[] msoExceptionCategoryArray0 = MsoExceptionCategory.values();
22       assertNotNull(msoExceptionCategoryArray0);
23   }
24
25   @Test(timeout = 4000)
26   public void test1()  throws Throwable  {
27       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.valueOf("IO");
28       assertEquals(MsoExceptionCategory.IO, msoExceptionCategory0);
29   }
30
31   @Test(timeout = 4000)
32   public void test2()  throws Throwable  {
33       // Undeclared exception!
34       try { 
35         MsoExceptionCategory.valueOf((String) null);
36         fail("Expecting exception: NullPointerException");
37       
38       } catch(NullPointerException e) {
39          //
40          // Name is null
41          //
42          verifyException("java.lang.Enum", e);
43       }
44   }
45
46   @Test(timeout = 4000)
47   public void test3()  throws Throwable  {
48       // Undeclared exception!
49       try { 
50         MsoExceptionCategory.valueOf("");
51         fail("Expecting exception: IllegalArgumentException");
52       
53       } catch(IllegalArgumentException e) {
54          //
55          // No enum constant org.openecomp.mso.adapters.network.async.client.MsoExceptionCategory.
56          //
57          verifyException("java.lang.Enum", e);
58       }
59   }
60
61   @Test(timeout = 4000)
62   public void test4()  throws Throwable  {
63       // Undeclared exception!
64       try { 
65         MsoExceptionCategory.fromValue("v@;'v:U'4Kk;");
66         fail("Expecting exception: IllegalArgumentException");
67       
68       } catch(IllegalArgumentException e) {
69          //
70          // No enum constant org.openecomp.mso.adapters.network.async.client.MsoExceptionCategory.v@;'v:U'4Kk;
71          //
72          verifyException("java.lang.Enum", e);
73       }
74   }
75
76   @Test(timeout = 4000)
77   public void test5()  throws Throwable  {
78       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.fromValue("INTERNAL");
79       String string0 = msoExceptionCategory0.value();
80       assertEquals("INTERNAL", string0);
81   }
82
83   @Test(timeout = 4000)
84   public void test6()  throws Throwable  {
85       // Undeclared exception!
86       try { 
87         MsoExceptionCategory.fromValue((String) null);
88         fail("Expecting exception: NullPointerException");
89       
90       } catch(NullPointerException e) {
91          //
92          // Name is null
93          //
94          verifyException("java.lang.Enum", e);
95       }
96   }
97 }