diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/tests/custom-projects/ant-dynamic-junit/test/FailTest.java | 10 | ||||
-rw-r--r-- | tests/integration/tests/custom-projects/ant-dynamic-junit/test/ant/HelloWorldTest.java | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/test/FailTest.java b/tests/integration/tests/custom-projects/ant-dynamic-junit/test/FailTest.java new file mode 100644 index 00000000000..7cdd82548ee --- /dev/null +++ b/tests/integration/tests/custom-projects/ant-dynamic-junit/test/FailTest.java @@ -0,0 +1,10 @@ +public class FailTest extends junit.framework.TestCase { + + public void testNothing() { + } + + public void testWillAlwaysFail() { + fail("An error message"); + } + +}
\ No newline at end of file diff --git a/tests/integration/tests/custom-projects/ant-dynamic-junit/test/ant/HelloWorldTest.java b/tests/integration/tests/custom-projects/ant-dynamic-junit/test/ant/HelloWorldTest.java new file mode 100644 index 00000000000..47ae3adeb1d --- /dev/null +++ b/tests/integration/tests/custom-projects/ant-dynamic-junit/test/ant/HelloWorldTest.java @@ -0,0 +1,14 @@ +package ant; + +public class HelloWorldTest extends junit.framework.TestCase { + + public void testClone() { + HelloWorld hello = new HelloWorld(); + assertEquals(hello, hello.clone()); + } + + public void testWillAlwaysFail() { + fail("An error message"); + } + +}
\ No newline at end of file |