1 | void testKeyword() throws Exception {↵ | | 1 | void testOrboth() {↵
|
2 | executeJspCompile("testKeyword", "default_jsp.java");↵ | | 2 | expec↵
|
3 | }↵ | | |
|
|
|
4 | /**↵ | | |
|
5 | * what happens to 1nvalid-classname↵ | | |
|
6 | */↵ | | |
|
7 | public void testInvalidClassname() throws Exception↵ | | 3 | tPropertySet("orboth","orboth");↵
|
| | | 4 | }↵
|
|
8 | {↵ | | 5 | public void testFilesmatchIdentical() {↵
|
9 | executeJspCompile("testInvalidClassname",↵ | | 6 | expec↵
|
10 | "_1nvalid_0002dclassname_jsp.java");↵ | | |
|
11 | }↵ | | |
|
|
|
12 | /**↵ | | |
|
13 | * A unit test for JUnit↵ | | |
|
14 | */↵ | | |
|
15 | public void testNoTld() throws Exception {↵ | | |
|
16 | // ↵ | | 7 | tPropertySet("filesmatch-identical","filesmatch-identical");↵
|
| | | 8 | }↵
|
|
|
| | | 9 | public void testFilesmatchIncomplete() {↵
|
17 | expectBuildExceptionContaining("testNoTld",↵ | | 10 | expectSpecificBuildException("filesmatch-incomplete",↵
|
18 | // "Jasper found an error in a file",↵ | | 11 | ↵
|
19 | // "Java returned: 9");↵ | | |
|
20 | expectBuildExceptionContaining("testNoTld",↵ | | 12 | "Missing file2 attribute",↵
|
21 | "not found",↵ | | 13 | ↵
|
22 | "Java returned: 9");↵ | | 14 | "both file1 and file2 are required in filesmatch");↵
|
23 | | | 15 |
|