2 * This file was automatically generated by EvoSuite
3 * Fri Nov 25 13:37:47 GMT 2016
6 package org.openecomp.mso.asdc.installer;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
12 import java.math.BigDecimal;
13 import org.evosuite.runtime.EvoRunner;
14 import org.evosuite.runtime.EvoRunnerParameters;
15 import org.junit.runner.RunWith;
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true)
18 public class BigDecimalVersionESTest extends BigDecimalVersionESTestscaffolding {
21 public void test00() throws Throwable {
22 String string0 = BigDecimalVersion.castAndCheckNotificationVersionToString("9");
23 assertEquals("9", string0);
27 public void test01() throws Throwable {
28 BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("0");
29 assertEquals(0, bigDecimal0.shortValue());
33 public void test02() throws Throwable {
34 BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("9");
35 assertEquals(9, bigDecimal0.byteValue());
39 public void test03() throws Throwable {
40 BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("-1");
41 assertEquals(-1, bigDecimal0.byteValue());
45 public void test04() throws Throwable {
46 // Undeclared exception!
48 BigDecimalVersion.castAndCheckNotificationVersionToString("fgt+&6@pL9`5EE}.!.,");
49 fail("Expecting exception: NumberFormatException");
51 } catch(NumberFormatException e) {
53 // no message in exception (getMessage() returned null)
55 verifyException("java.math.BigDecimal", e);
60 public void test05() throws Throwable {
61 // Undeclared exception!
63 BigDecimalVersion.castAndCheckNotificationVersionToString((String) null);
64 fail("Expecting exception: NullPointerException");
66 } catch(NullPointerException e) {
68 // no message in exception (getMessage() returned null)
70 verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);
75 public void test06() throws Throwable {
76 // Undeclared exception!
78 BigDecimalVersion.castAndCheckNotificationVersion((String) null);
79 fail("Expecting exception: NullPointerException");
81 } catch(NullPointerException e) {
83 // no message in exception (getMessage() returned null)
85 verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);
90 public void test07() throws Throwable {
91 // Undeclared exception!
93 BigDecimalVersion.castAndCheckNotificationVersion(".");
94 fail("Expecting exception: ArrayIndexOutOfBoundsException");
96 } catch(ArrayIndexOutOfBoundsException e) {
100 verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);
104 @Test(timeout = 4000)
105 public void test08() throws Throwable {
106 // Undeclared exception!
108 BigDecimalVersion.castAndCheckNotificationVersion("Mf**K`5E.~Fu.,q");
109 fail("Expecting exception: NumberFormatException");
111 } catch(NumberFormatException e) {
113 // no message in exception (getMessage() returned null)
115 verifyException("java.math.BigDecimal", e);
119 @Test(timeout = 4000)
120 public void test09() throws Throwable {
121 BigDecimalVersion bigDecimalVersion0 = new BigDecimalVersion();
124 @Test(timeout = 4000)
125 public void test10() throws Throwable {
126 // Undeclared exception!
128 BigDecimalVersion.castAndCheckNotificationVersionToString(".");
129 fail("Expecting exception: ArrayIndexOutOfBoundsException");
131 } catch(ArrayIndexOutOfBoundsException e) {
135 verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);