forked from shekhargulati/strman-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStrmanAutoTestPart1_ESTest.java
More file actions
85 lines (73 loc) · 2.88 KB
/
StrmanAutoTestPart1_ESTest.java
File metadata and controls
85 lines (73 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* This file was automatically generated by EvoSuite
* Mon Oct 08 18:55:04 GMT 2018
*/
package evo.com.strman;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.strman.StrmanAutoTestPart1;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true)
public class StrmanAutoTestPart1_ESTest extends StrmanAutoTestPart1_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
String[] stringArray0 = new String[1];
stringArray0[0] = "";
String string0 = StrmanAutoTestPart1.append("", stringArray0);
assertEquals("", string0);
}
@Test(timeout = 4000)
public void test1() throws Throwable {
String[] stringArray0 = new String[8];
// Undeclared exception!
try {
StrmanAutoTestPart1.appendArray((String) null, stringArray0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// 'value' should be not null.
//
verifyException("com.strman.StrmanAutoTestPart1", e);
}
}
@Test(timeout = 4000)
public void test2() throws Throwable {
String[] stringArray0 = new String[0];
String string0 = StrmanAutoTestPart1.appendArray("", stringArray0);
assertEquals("", string0);
}
@Test(timeout = 4000)
public void test3() throws Throwable {
String[] stringArray0 = new String[8];
String string0 = StrmanAutoTestPart1.appendArray("com.strman.StrmanAutoTestPart1", stringArray0);
assertEquals("com.strman.StrmanAutoTestPart1nullnullnullnullnullnullnullnull", string0);
}
@Test(timeout = 4000)
public void test4() throws Throwable {
String[] stringArray0 = new String[0];
// Undeclared exception!
try {
StrmanAutoTestPart1.append((String) null, stringArray0);
fail("Expecting exception: IllegalArgumentException");
} catch(IllegalArgumentException e) {
//
// 'value' should be not null.
//
verifyException("com.strman.StrmanAutoTestPart1", e);
}
}
@Test(timeout = 4000)
public void test5() throws Throwable {
String[] stringArray0 = new String[14];
String string0 = StrmanAutoTestPart1.append("_Y ", stringArray0);
assertEquals("_Y nullnullnullnullnullnullnullnullnullnullnullnullnullnull", string0);
}
@Test(timeout = 4000)
public void test6() throws Throwable {
String string0 = StrmanAutoTestPart1.appendArray("", (String[]) null);
assertEquals("", string0);
}
}