1 | void testNoSourcefileDefined() {↵ | | 1 | void test↵
|
2 | expectBuildException("testNoSourcefileDefined",↵ | | |
|
3 | "source file not defined");↵ | | |
|
4 | }↵ | | |
|
|
|
5 | /**↵ | | |
|
6 | * A unit test for JUnit↵ | | |
|
7 | */↵ | | |
|
8 | public void testNoPropertyDefined() {↵ | | |
|
9 | expectBuildException("testNoPropertyDefined",↵ | | |
|
10 | "output property not defined");↵ | | |
|
11 | }↵ | | |
|
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | |
|
14 | */↵ | | |
|
15 | public void testNoSourcefilefound()↵ | | 2 | Trimignore() throws IOException {↵
|
| | | 3 | expectLogContaining("trimignore", "Hello-World");↵
|
| | | 4 | }↵
|
|
| | | 5 | public void testStringTokenizer() throws IOException {↵
|
| | | 6 | expectLogContaining(↵
|
| | | 7 | "stringtokenizer", "#This#is#a#number#of#words#");↵
|
| | | 8 | }↵
|
|
16 | {↵ | | 9 | public void testUnixLineOutput() throws IOException {↵
|
17 | expectBuildExceptionContaining("testNoSourcefilefound",↵ | | 10 | expect↵
|
18 | "File not found", " doesn't exist↵ | | 11 | FileContains(↵
|
| | | 12 | "unixlineoutput", "result/unixlineoutput",↵
|
19 | ");↵ | | 13 | "\nThis\nis\na\nnumber\nof\nwords\n");↵
|
20 | | | 14 |
|