1 | public class EchoXMLTest extends BuildFileTest {↵ | | 1 | public class IsSignedTest extends BuildFileTest {↵
|
|
2 | public EchoXMLTest(String name) {↵ | | 2 | public IsSignedTest(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/conditions/issigned.xml");↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void tearDown() {↵ | | 8 | public void testPass() {↵
|
9 | executeTarget("tearDown");↵ | | 9 | executeTarget("pass");↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public void testPass() {↵ | | 11 | public void testPassword() {↵
|
12 | executeTarget("testPass");↵ | | 12 | executeTarget("password");↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void testFail() {↵ | | 14 | public void testAPassword() {↵
|
15 | expectBuildExceptionContaining("testFail", "must fail", "${foo}=bar");↵ | | 15 | executeTarget("apassword");↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void testEmpty() {↵ | | 17 | public void testAllSigned() {↵
|
18 | expectBuildExceptionContaining("testEmpty", "must fail", "No nested XML specified");↵ | | 18 | executeTarget("allsigned");↵
|
19 | | | 19 |
|