1 | void testTrimignore() throws IOException {↵ | | 1 | void testKeyword() throws Exception {↵
|
2 | expectLogContaining("trimignore", "Hello-World");↵ | | 2 | executeJspCompile("testKeyword", "↵
|
3 | }↵ | | |
|
| | | 3 | default_jsp.java");↵
|
| | | 4 | }↵
|
|
|
| | | 5 | /**↵
|
| | | 6 | * what happens to 1nvalid-classname↵
|
| | | 7 | */↵
|
4 | public void testStringTokenizer() throws IOException {↵ | | 8 | public void testInvalidClassname() throws Exception {↵
|
5 | expectLogContaining(↵ | | 9 | exec↵
|
6 | "stringtokenizer", "#This#is#a#number#of#words#");↵ | | |
|
7 | }↵ | | |
|
| | | 10 | uteJspCompile("testInvalidClassname",↵
|
| | | 11 | "_1nvalid_0002dclassname_jsp.java");↵
|
| | | 12 | }↵
|
|
|
| | | 13 | /**↵
|
| | | 14 | * A unit test for JUnit↵
|
| | | 15 | */↵
|
8 | public void testUnixLineOutput() throws IOException {↵ | | 16 | public void testNoTld() throws Exception {↵
|
9 | expectFileContains(↵ | | 17 | // expect↵
|
10 | "unixlineoutput", "result/unixlineoutput↵ | | 18 | BuildExceptionContaining("testNoTld",↵
|
| | | 19 | // "Jasper found an error in a file",↵
|
| | | 20 | // "Java returned: 9");↵
|
11 | ",↵ | | 21 | expectBuildExceptionContaining("testNoTld",↵
|
12 | "\nThis\nis\na\nnumber\nof\nwords\n↵ | | 22 | "not found",↵
|
13 | ");↵ | | 23 | "Java returned: 9");↵
|
14 | } | | 24 | }
|