2 * This file was automatically generated by EvoSuite
3 * Mon Nov 14 09:36:01 GMT 2016
6 package org.openecomp.mso.adapters.network.async.client;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
12 import org.evosuite.runtime.EvoRunner;
13 import org.evosuite.runtime.EvoRunnerParameters;
14 import org.junit.runner.RunWith;
16 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
17 public class MsoExceptionCategoryESTest extends MsoExceptionCategoryESTestscaffolding {
20 public void test0() throws Throwable {
21 MsoExceptionCategory[] msoExceptionCategoryArray0 = MsoExceptionCategory.values();
22 assertNotNull(msoExceptionCategoryArray0);
26 public void test1() throws Throwable {
27 MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.valueOf("IO");
28 assertEquals(MsoExceptionCategory.IO, msoExceptionCategory0);
32 public void test2() throws Throwable {
33 // Undeclared exception!
35 MsoExceptionCategory.valueOf((String) null);
36 fail("Expecting exception: NullPointerException");
38 } catch(NullPointerException e) {
42 verifyException("java.lang.Enum", e);
47 public void test3() throws Throwable {
48 // Undeclared exception!
50 MsoExceptionCategory.valueOf("");
51 fail("Expecting exception: IllegalArgumentException");
53 } catch(IllegalArgumentException e) {
55 // No enum constant org.openecomp.mso.adapters.network.async.client.MsoExceptionCategory.
57 verifyException("java.lang.Enum", e);
62 public void test4() throws Throwable {
63 // Undeclared exception!
65 MsoExceptionCategory.fromValue("v@;'v:U'4Kk;");
66 fail("Expecting exception: IllegalArgumentException");
68 } catch(IllegalArgumentException e) {
70 // No enum constant org.openecomp.mso.adapters.network.async.client.MsoExceptionCategory.v@;'v:U'4Kk;
72 verifyException("java.lang.Enum", e);
77 public void test5() throws Throwable {
78 MsoExceptionCategory msoExceptionCategory0 = MsoExceptionCategory.fromValue("INTERNAL");
79 String string0 = msoExceptionCategory0.value();
80 assertEquals("INTERNAL", string0);
84 public void test6() throws Throwable {
85 // Undeclared exception!
87 MsoExceptionCategory.fromValue((String) null);
88 fail("Expecting exception: NullPointerException");
90 } catch(NullPointerException e) {
94 verifyException("java.lang.Enum", e);