Jesse Glick <jesse.glick <at> oracle.com> writes:
> Cannot add a test for it easily without relying on JDK 5 to build.

Manual test case (retyped by hand so please excuse any typos):

<property name="junit.jar" location="..."/>
<echo file="T1.java">public class T1 extends
junit.framework.TestCase" {
public void testOK() {}
public void testBad() {throw new RuntimeException("failed");}
}</echo>
<echo file="T2.java">public class T2 {
@org.junit.Test public void ok() {}
@org.junit.Test public void bad() {
throw new RuntimeException("failed");}
}</echo>
<javac srcdir="." destdir="." includes="T1.java,T2.java" source="6"
classpath="${junit.jar}" includeantruntime="false"/>
<junit fork="true" printsummary="true">
<classpath path=".:${junit.jar}"/>
<test name="T1" methods="testOK"/>
<test name="T2" methods="ok"/>
</junit>

Expected: both test suites pass with one method each.
Actual 1.8.2 proposed build: T1 passes with one method;
T2 fails in bad() which is supposed to be skipped.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org

Reply via email to