Merge "updated ARIA version"
[so.git] / adapters / mso-vnf-adapter-async-client / src / test / java / org / openecomp / mso / adapters / vnf / async / client / MsoExceptionCategoryESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Mon Nov 14 10:52:03 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 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("INTERNAL");
28       assertEquals(MsoExceptionCategory.INTERNAL, 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("sm%");
51         fail("Expecting exception: IllegalArgumentException");
52       
53       } catch(IllegalArgumentException e) {
54          //
55          // No enum constant org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory.sm%
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((String) null);
66         fail("Expecting exception: NullPointerException");
67       
68       } catch(NullPointerException e) {
69          //
70          // Name is null
71          //
72          verifyException("java.lang.Enum", e);
73       }
74   }
75
76   @Test(timeout = 4000)
77   public void test5()  throws Throwable  {
78       // Undeclared exception!
79       try { 
80         MsoExceptionCategory.fromValue("'E'J4$ovJ-=|?p<\7fo5");
81         fail("Expecting exception: IllegalArgumentException");
82       
83       } catch(IllegalArgumentException e) {
84          //
85          // No enum constant org.openecomp.mso.adapters.vnf.async.client.MsoExceptionCategory.'E'J4$ovJ-=|?p<\7fo5
86          //
87          verifyException("java.lang.Enum", e);
88       }
89   }
90
91   @Test(timeout = 4000)
92   public void test6()  throws Throwable  {
93       MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.IO;
94       String string0 = msoExceptionCategory0.value();
95       assertEquals("IO", string0);
96   }
97 }