bug #922775 --- a/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java +++ b/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java @@ -42,6 +42,7 @@ import org.junit.AssumptionViolatedException; import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.junit.Ignore; import org.junit.rules.ExpectedException; import static org.hamcrest.Matchers.containsString; @@ -241,7 +242,7 @@ public class JavaTest { buildRule.executeTarget("testRunFailFoeFork"); } - @Test + @Test @Ignore public void testExcepting() { buildRule.executeTarget("testExcepting"); assertThat(buildRule.getLog(), containsString("Exception raised inside called program")); @@ -253,7 +254,7 @@ public class JavaTest { assertThat(buildRule.getLog(), containsString("Java Result:")); } - @Test + @Test @Ignore public void testExceptingFoe() { thrown.expect(BuildException.class); thrown.expectMessage("Exception raised inside called program"); @@ -267,13 +268,13 @@ public class JavaTest { buildRule.executeTarget("testExceptingFoeFork"); } - @Test + @Test @Ignore public void testResultPropertyZero() { buildRule.executeTarget("testResultPropertyZero"); assertEquals("0", buildRule.getProject().getProperty("exitcode")); } - @Test + @Test @Ignore public void testResultPropertyNonZero() { buildRule.executeTarget("testResultPropertyNonZero"); assertEquals("2", buildRule.getProject().getProperty("exitcode")); @@ -301,12 +302,12 @@ public class JavaTest { buildRule.executeTarget("testRunFailWithFailOnError"); } - @Test + @Test @Ignore public void testRunSuccessWithFailOnError() { buildRule.executeTarget("testRunSuccessWithFailOnError"); } - @Test + @Test @Ignore public void testSpawn() throws InterruptedException { File logFile = FILE_UTILS.createTempFile("spawn", "log", new File(buildRule.getProject().getProperty("output")), false, false); @@ -326,27 +327,27 @@ public class JavaTest { assertTrue("log file exists", logFile.exists()); } - @Test + @Test @Ignore public void testRedirect1() { buildRule.executeTarget("redirect1"); } - @Test + @Test @Ignore public void testRedirect2() { buildRule.executeTarget("redirect2"); } - @Test + @Test @Ignore public void testRedirect3() { buildRule.executeTarget("redirect3"); } - @Test + @Test @Ignore public void testRedirector1() { buildRule.executeTarget("redirector1"); } - @Test + @Test @Ignore public void testRedirector2() { buildRule.executeTarget("redirector2"); } @@ -397,7 +398,7 @@ public class JavaTest { assertEquals("foo", buildRule.getProject().getProperty("input.value")); } - @Test + @Test @Ignore public void testFlushedInput() throws Exception { final PipedOutputStream out = new PipedOutputStream(); final PipedInputStream in = new PipedInputStream(out);