1 | public class EchoXMLTest extends BuildFileTest {↵ | | 1 | public class RenameTest extends BuildFileTest {↵
|
|
2 | public EchoXMLTest(String name) {↵ | | 2 | public RenameTest(String name) {↵
|
3 | super(name);↵ | | 3 | super(name);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void setUp() {↵ | | 5 | public void setUp() {↵
|
6 | configureProject("src/etc/testcases/taskdefs/echoxml.xml");↵ | | 6 | configureProject("src/etc/testcases/taskdefs/rename.xml");↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void tearDown() {↵ | | 8 | public void test1() {↵
|
9 | executeTarget("tearDown");↵ | | 9 | expectBuildException("test1", "required argument missing");↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public void testPass() {↵ | | 11 | public void test2() {↵
|
12 | executeTarget("testPass");↵ | | 12 | expectBuildException("test2", "required argument missing");↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void testFail() {↵ | | 14 | public void test3() {↵
|
15 | expectBuildExceptionContaining("testFail", "must fail", "${foo}=bar");↵ | | 15 | expectBuildException("test3", "required argument missing");↵
|
16 | }↵ | | 16 | }↵
|
| | | 17 | /*↵
|
17 | public void testEmpty() {↵ | | 18 | public void test4() {↵
|
18 | expectBuildExceptionContaining("testEmpty", "must fail", "No nested XML specified↵ | | 19 | expectBuildException("test4", "source and destination the same");↵
|
| | | 20 | }↵
|
| | | 21 | public void test5() {↵
|
| | | 22 | executeTarget("test5");↵
|
| | | 23 | }↵
|
| | | 24 | */↵
|
| | | 25 | public void test6() {↵
|
19 | ");↵ | | 26 | executeTarget("test6");↵
|
20 | | | 27 |
|