git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@431469 13f79535-47bb-0310-9956-ffa450edef68master
@@ -11,7 +11,7 @@ | |||||
<p>This task runs tests from the JUnit testing framework. The latest | <p>This task runs tests from the JUnit testing framework. The latest | ||||
version of the framework can be found at | version of the framework can be found at | ||||
<a href="http://www.junit.org">http://www.junit.org</a>. | <a href="http://www.junit.org">http://www.junit.org</a>. | ||||
This task has been tested with JUnit 3.0 up to JUnit 3.8.1; it won't | |||||
This task has been tested with JUnit 3.0 up to JUnit 3.8.2; it won't | |||||
work with versions prior to JUnit 3.0. It also works with JUnit 4.0, including | work with versions prior to JUnit 3.0. It also works with JUnit 4.0, including | ||||
"pure" JUnit 4 tests using only annotations and no <code>JUnit4TestAdapter</code>.</p> | "pure" JUnit 4 tests using only annotations and no <code>JUnit4TestAdapter</code>.</p> | ||||
<p><strong>Note:</strong> This task depends on external libraries not included | <p><strong>Note:</strong> This task depends on external libraries not included | ||||
@@ -383,7 +383,7 @@ start the application from that directory and these files will included into the | |||||
<a name="junit"> | <a name="junit"> | ||||
<h2>Testing the class</h2> | <h2>Testing the class</h2> | ||||
<p>In this step we will introduce the usage of the JUnit [3] testframework in combination with Ant. Because Ant | <p>In this step we will introduce the usage of the JUnit [3] testframework in combination with Ant. Because Ant | ||||
has a build-in JUnit 3.8.1 you could start directly using it. Write a test class in <tt>src\HelloWorldTest.java</tt>: </p> | |||||
has a built-in JUnit 3.8.2 you could start directly using it. Write a test class in <tt>src\HelloWorldTest.java</tt>: </p> | |||||
<pre class="code"> | <pre class="code"> | ||||
public class HelloWorldTest extends junit.framework.TestCase { | public class HelloWorldTest extends junit.framework.TestCase { | ||||
@@ -506,4 +506,4 @@ need the HTML report just for testing, e.g. if you are fixing an error or a inte | |||||
<p align="center">Copyright © 2005-2006 The Apache Software Foundation. All rights Reserved.</p> | <p align="center">Copyright © 2005-2006 The Apache Software Foundation. All rights Reserved.</p> | ||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -24,7 +24,7 @@ commons-logging.version=1.0.4 | |||||
commons-logging-api.version=${commons-logging.version} | commons-logging-api.version=${commons-logging.version} | ||||
jdepend.version=2.7 | jdepend.version=2.7 | ||||
jruby.version=0.8.3 | jruby.version=0.8.3 | ||||
junit.version=3.8.1 | |||||
junit.version=3.8.2 | |||||
jsch.version=0.1.25 | jsch.version=0.1.25 | ||||
jython.version=2.1 | jython.version=2.1 | ||||
log4j.version=1.2.13 | log4j.version=1.2.13 | ||||
@@ -1,3 +1,3 @@ | |||||
The file junit-3.8.1.jar is version 3.8.1 of JUnit, see the file LICENSE.junit | |||||
The file junit-3.8.2.jar is version 3.8.2 of JUnit, see the file LICENSE.junit | |||||
for the terms of distribution. For more information about JUnit or | for the terms of distribution. For more information about JUnit or | ||||
the latest release, see <http://www.junit.org/>. | the latest release, see <http://www.junit.org/>. |
@@ -303,7 +303,7 @@ public class JUnitTestRunner implements TestListener, JUnitTaskMirror.JUnitTestR | |||||
// Check for JDK 5 first. Will *not* help on JDK 1.4 | // Check for JDK 5 first. Will *not* help on JDK 1.4 | ||||
// if only junit-4.0.jar in CP because in that case | // if only junit-4.0.jar in CP because in that case | ||||
// linkage of whole task will already have failed! But | // linkage of whole task will already have failed! But | ||||
// will help if CP has junit-3.8.1.jar:junit-4.0.jar. | |||||
// will help if CP has junit-3.8.2.jar:junit-4.0.jar. | |||||
// In that case first C.fN will fail with CNFE and we | // In that case first C.fN will fail with CNFE and we | ||||
// will avoid UnsupportedClassVersionError. | // will avoid UnsupportedClassVersionError. | ||||