1 | void test1() {↵ | | 1 | void testWithStyleAttrAndResource() throws Exception {↵
|
2 | expectBuildExceptionContaining("test1",↵ | | 2 | expectSpecificBuildException↵
|
3 | "it is required to fail :-)",↵ | | |
|
4 | "No message");↵ | | |
|
5 | }↵ | | |
|
|
6 | public void test2() {↵ | | |
|
7 | expectSpecificBuildException("test2",↵ | | |
|
8 | "it is required to fail :-)",↵ | | |
|
| | | 3 | ("testWithStyleAttrAndResource",↵
|
| | | 4 | "Must throws a BuildException", "specify the " +↵
|
| | | 5 | "stylesheet either as a filename in style " +↵
|
| | | 6 | "attribute or as a nested resource but not " +↵
|
9 | "test2");↵ | | 7 | "as both");↵
|
10 | }↵ | | 8 | }↵
|
|
11 | public void testText() {↵ | | 9 | public void test↵
|
12 | expectSpecificBuildException("testText",↵ | | 10 | WithFileResource() throws Exception {↵
|
| | | 11 | expectFileContains("testWithFileResource", "out/out.xml", "set='value'");↵
|
13 | ↵ | | 12 | }↵
|
|
14 | "it is required to fail :-)",↵ | | 13 | ↵
|
15 | "testText↵ | | 14 | public void testWithUrlResource() throws Exception {↵
|
16 | ");↵ | | 15 | expectFileContains("testWithUrlResource", "out/out.xml", "set='value'");↵
|
17 | | | 16 |
|