1 | void testExcepting() {↵ | | 1 | void testTrimignore() throws IOException {↵
|
2 | expectLogContaining("testExcepting",↵ | | 2 | expectLogContaining("t↵
|
3 | "Exception raised inside called program");↵ | | 3 | rimignore", "Hello-World");↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testExceptingFork() {↵ | | 5 | public void test↵
|
6 | expectLogContaining("testExceptingFork",↵ | | |
|
7 | "Java Result:↵ | | 6 | StringTokenizer() throws IOException {↵
|
| | | 7 | expectLogContaining(↵
|
8 | ");↵ | | 8 | "stringtokenizer", "#This#is#a#number#of#words#");↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public void testExceptingFoe() {↵ | | 10 | public void test↵
|
11 | expectBuildExceptionContaining("testExceptingFoe",↵ | | |
|
12 | "passes exception through",↵ | | |
|
13 | "Exception raised inside called program↵ | | 11 | UnixLineOutput() throws IOException {↵
|
| | | 12 | expectFileContains(↵
|
| | | 13 | "unixlineoutput", "result/unixlineoutput",↵
|
14 | ");↵ | | 14 | "\nThis\nis\na\nnumber\nof\nwords\n");↵
|
15 | }↵ | | 15 | }↵
|
|
16 | public void testExceptingFoeFork() {↵ | | 16 | public void test↵
|
17 | expectBuildExceptionContaining("testExceptingFoeFork",↵ | | |
|
18 | "exceptions turned into error codes",↵ | | |
|
19 | "Java returned:↵ | | 17 | DosLineOutput() throws IOException {↵
|
| | | 18 | expectFileContains(↵
|
| | | 19 | "doslineoutput", "result/doslineoutput",↵
|
20 | ");↵ | | 20 | "\r\nThis\r\nis\r\na\r\nnumber\r\nof\r\nwords\r\n");↵
|
21 | | | 21 |
|