1 | void testIso2022Jp() {↵ | | 1 | void test4() {↵
|
2 | executeTarget("testIso2022Jp");↵ | | 2 | executeTarget("test4");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | ↵
|
5 | * utf-8.xml is invalid as it contains non-UTF-8 characters, but↵ | | |
|
6 | * would pass on systems with a native iso-8859-1 (or similar)↵ | | |
|
7 | * encoding.↵ | | 5 | public void test5() {↵
|
| | | 6 | // should print "panic: Cannot find importVocab file 'JavaTokenTypes.txt'"↵
|
8 | *↵ | | 7 | ↵
|
9 | * Bug 11279↵ | | 8 | ↵
|
10 | */↵ | | |
|
11 | public void testUtf8() {↵ | | |
|
12 | expectBuildException("testUtf8", "invalid characters in file");↵ | | |
|
13 | }↵ | | |
|
|
14 | // Tests property element, using XML schema properties as an example.↵ | | |
|
|
15 | public void testPropertySchemaForValidXML↵ | | 9 | // since it needs to run java.g first before java.tree.g↵
|
| | | 10 | expectBuildException("test5", "ANTLR returned: 1");↵
|
| | | 11 | }↵
|
|
16 | () {↵ | | 12 | public void test6() {↵
|
17 | executeTarget("testProperty.validXML");↵ | | 13 | executeTarget("test6");↵
|
18 | }↵ | | 14 | }↵
|
|
19 | public void testPropertySchemaForInvalidXML() {↵ | | 15 | public void test7() {↵
|
20 | expectBuildException(↵ | | 16 | expectBuildException(↵
|
21 | "testProperty.invalidXML",↵ | | |
|
22 | "XML file does not satisfy schema.");↵ | | 17 | "test7", "Unable to determine generated class");↵
|
23 | | | 18 |
|