Initial OpenECOMP MSO commit
[so.git] / asdc-controller / src / test / java / org / openecomp / mso / asdc / installer / BigDecimalVersionESTest.java
1 /*
2  * This file was automatically generated by EvoSuite
3  * Fri Nov 25 13:37:47 GMT 2016
4  */
5
6 package org.openecomp.mso.asdc.installer;
7
8 import org.junit.Test;
9 import static org.junit.Assert.*;
10 import static org.evosuite.runtime.EvoAssertions.*;
11
12 import java.math.BigDecimal;
13 import org.evosuite.runtime.EvoRunner;
14 import org.evosuite.runtime.EvoRunnerParameters;
15 import org.junit.runner.RunWith;
16
17 @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
18 public class BigDecimalVersionESTest extends BigDecimalVersionESTestscaffolding {
19
20   @Test(timeout = 4000)
21   public void test00()  throws Throwable  {
22       String string0 = BigDecimalVersion.castAndCheckNotificationVersionToString("9");
23       assertEquals("9", string0);
24   }
25
26   @Test(timeout = 4000)
27   public void test01()  throws Throwable  {
28       BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("0");
29       assertEquals(0, bigDecimal0.shortValue());
30   }
31
32   @Test(timeout = 4000)
33   public void test02()  throws Throwable  {
34       BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("9");
35       assertEquals(9, bigDecimal0.byteValue());
36   }
37
38   @Test(timeout = 4000)
39   public void test03()  throws Throwable  {
40       BigDecimal bigDecimal0 = BigDecimalVersion.castAndCheckNotificationVersion("-1");
41       assertEquals(-1, bigDecimal0.byteValue());
42   }
43
44   @Test(timeout = 4000)
45   public void test04()  throws Throwable  {
46       // Undeclared exception!
47       try { 
48         BigDecimalVersion.castAndCheckNotificationVersionToString("fgt+&6@pL9`5EE}.!.,");
49         fail("Expecting exception: NumberFormatException");
50       
51       } catch(NumberFormatException e) {
52          //
53          // no message in exception (getMessage() returned null)
54          //
55          verifyException("java.math.BigDecimal", e);
56       }
57   }
58
59   @Test(timeout = 4000)
60   public void test05()  throws Throwable  {
61       // Undeclared exception!
62       try { 
63         BigDecimalVersion.castAndCheckNotificationVersionToString((String) null);
64         fail("Expecting exception: NullPointerException");
65       
66       } catch(NullPointerException e) {
67          //
68          // no message in exception (getMessage() returned null)
69          //
70          verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);
71       }
72   }
73
74   @Test(timeout = 4000)
75   public void test06()  throws Throwable  {
76       // Undeclared exception!
77       try { 
78         BigDecimalVersion.castAndCheckNotificationVersion((String) null);
79         fail("Expecting exception: NullPointerException");
80       
81       } catch(NullPointerException e) {
82          //
83          // no message in exception (getMessage() returned null)
84          //
85          verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);
86       }
87   }
88
89   @Test(timeout = 4000)
90   public void test07()  throws Throwable  {
91       // Undeclared exception!
92       try { 
93         BigDecimalVersion.castAndCheckNotificationVersion(".");
94         fail("Expecting exception: ArrayIndexOutOfBoundsException");
95       
96       } catch(ArrayIndexOutOfBoundsException e) {
97          //
98          // 0
99          //
100          verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);
101       }
102   }
103
104   @Test(timeout = 4000)
105   public void test08()  throws Throwable  {
106       // Undeclared exception!
107       try { 
108         BigDecimalVersion.castAndCheckNotificationVersion("Mf**K`5E.~Fu.,q");
109         fail("Expecting exception: NumberFormatException");
110       
111       } catch(NumberFormatException e) {
112          //
113          // no message in exception (getMessage() returned null)
114          //
115          verifyException("java.math.BigDecimal", e);
116       }
117   }
118
119   @Test(timeout = 4000)
120   public void test09()  throws Throwable  {
121       BigDecimalVersion bigDecimalVersion0 = new BigDecimalVersion();
122   }
123
124   @Test(timeout = 4000)
125   public void test10()  throws Throwable  {
126       // Undeclared exception!
127       try { 
128         BigDecimalVersion.castAndCheckNotificationVersionToString(".");
129         fail("Expecting exception: ArrayIndexOutOfBoundsException");
130       
131       } catch(ArrayIndexOutOfBoundsException e) {
132          //
133          // 0
134          //
135          verifyException("org.openecomp.mso.asdc.installer.BigDecimalVersion", e);
136       }
137   }
138 }