You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(80) |
Nov
(42) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(11) |
Feb
(50) |
Mar
(70) |
Apr
(102) |
May
(28) |
Jun
(45) |
Jul
(14) |
Aug
(75) |
Sep
(17) |
Oct
(15) |
Nov
(11) |
Dec
(4) |
2003 |
Jan
(16) |
Feb
(19) |
Mar
(21) |
Apr
(20) |
May
(29) |
Jun
(7) |
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
(3) |
Dec
(3) |
2004 |
Jan
(5) |
Feb
(4) |
Mar
(1) |
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
(7) |
Aug
(1) |
Sep
(6) |
Oct
(6) |
Nov
(1) |
Dec
(2) |
2005 |
Jan
(4) |
Feb
(4) |
Mar
(15) |
Apr
(1) |
May
|
Jun
(4) |
Jul
(6) |
Aug
(6) |
Sep
|
Oct
(4) |
Nov
(2) |
Dec
(4) |
2006 |
Jan
|
Feb
(91) |
Mar
(47) |
Apr
(7) |
May
(4) |
Jun
(9) |
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(36) |
Nov
(95) |
Dec
(12) |
2007 |
Jan
(11) |
Feb
(31) |
Mar
(45) |
Apr
(11) |
May
(9) |
Jun
(1) |
Jul
(146) |
Aug
(15) |
Sep
|
Oct
(3) |
Nov
(6) |
Dec
(1) |
2008 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(1) |
Jun
(3) |
Jul
(2) |
Aug
(19) |
Sep
(1) |
Oct
(10) |
Nov
|
Dec
(8) |
2009 |
Jan
(3) |
Feb
(1) |
Mar
(4) |
Apr
(8) |
May
(5) |
Jun
(4) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
(13) |
Nov
(13) |
Dec
(4) |
2010 |
Jan
(1) |
Feb
(2) |
Mar
(1) |
Apr
(2) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2011 |
Jan
(1) |
Feb
(4) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(12) |
Jul
(16) |
Aug
(4) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
From: David S. <ds...@us...> - 2007-02-27 17:51:42
|
Update of /cvsroot/junit/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv851 Modified Files: build.xml Log Message: Added javadoczip target to build.xml, and some better separation in build.xml while I'm at it. Index: build.xml =================================================================== RCS file: /cvsroot/junit/junit/build.xml,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- build.xml 21 Feb 2007 18:25:21 -0000 1.21 +++ build.xml 27 Feb 2007 17:51:30 -0000 1.22 @@ -10,7 +10,8 @@ <property name="unjarred" value="**/*.jar, ${testfiles}, doc/**, README.html, .classpath, .project, cpl-v10.html" /> <property name="jarfile" value="junit-${version}.jar" /> <property name="javadocdir" value="${dist}/javadoc" /> - + <property name="javadoczip" value="${dist}-javadoc.zip" /> + <target name="init"> <tstamp/> </target> @@ -31,19 +32,19 @@ srcdir="${src}" destdir="${bin}" debug="on" - > - <compilerarg value="-Xlint:unchecked" /> - </javac> + > + <compilerarg value="-Xlint:unchecked" /> + </javac> </target> - <target name="distributeTestsAndExamples"> - <copy todir="${dist}/${dir}"> - <fileset dir="${bin}/${dir}" includes="${testfiles}" /> - <fileset dir="${src}/${dir}" includes="${testfiles}" /> - </copy> - </target> + <target name="distributeTestsAndExamples"> + <copy todir="${dist}/${dir}"> + <fileset dir="${bin}/${dir}" includes="${testfiles}" /> + <fileset dir="${src}/${dir}" includes="${testfiles}" /> + </copy> + </target> - <target name="dist" depends="clean, build"> + <target name="populate-dist" depends="clean, build"> <delete dir="${dist}" /> <mkdir dir="${dist}" /> <jar @@ -56,30 +57,23 @@ basedir="${bin}" excludes="${unjarred}, **/*.java, build.xml" /> - <antcall target="distributeTestsAndExamples"> - <param name="dir" value="." /> - </antcall> - <antcall target="distributeTestsAndExamples"> - <param name="dir" value="org" /> - </antcall> + <antcall target="distributeTestsAndExamples"> + <param name="dir" value="." /> + </antcall> + <antcall target="distributeTestsAndExamples"> + <param name="dir" value="org" /> + </antcall> - <mkdir dir="${javadocdir}" /> - <javadoc - sourcepath="${src}" - packagenames="org.junit, org.junit.runner, org.junit.runner.description, org.junit.runner.manipulation, org.junit.runner.notification, org.junit.runners" - destdir="${javadocdir}" - author="false" - version="false" - use="false" - windowtitle="JUnit API" - stylesheetfile="stylesheet.css" - /> + <antcall target="javadoc" /> + <copy todir="${dist}/doc"> <fileset dir="doc"/> - </copy> + </copy> <copy file="README.html" tofile="${dist}/README.html" /> <copy file="cpl-v10.html" tofile="${dist}/cpl-v10.html" /> - + </target> + + <target name="dist" depends="populate-dist"> <java classname="org.junit.runner.JUnitCore" fork="yes" failonerror="true"> <arg value="org.junit.tests.AllTests"/> <classpath> @@ -88,20 +82,37 @@ </classpath> </java> </target> - - <target name="zip" depends="dist"> - <zip - zipfile="${zipfile}" - basedir="." - includes="${dist}/**" + + <target name="javadoczip"> + <delete file="${javadoczip}" /> + <antcall target="javadoc" /> + <zip basedir="${javadocdir}" file="${javadoczip}" /> + </target> + + <target name="javadoc"> + <mkdir dir="${javadocdir}" /> + <javadoc sourcepath="${src}" + packagenames="org.junit, org.junit.runner, org.junit.runner.description, org.junit.runner.manipulation, org.junit.runner.notification, org.junit.runners" + destdir="${javadocdir}" + author="false" + version="false" + use="false" + windowtitle="JUnit API" + stylesheetfile="stylesheet.css" /> </target> - + + <target name="zip" depends="dist"> + <zip zipfile="${zipfile}" basedir="." includes="${dist}/**" /> + </target> + <target name="clean"> - <delete dir="${dist}" quiet="true"/> - <delete file="${zipfile}" quiet="true"/> + <delete dir="${dist}" quiet="true" /> + <delete file="${zipfile}" quiet="true"/> <delete> - <fileset dir="${basedir}" includes="**/*.class" /> + <fileset dir="${basedir}" includes="**/*.class" /> </delete> + + <delete file="${javadoczip}" /> </target> </project> |
From: David S. <ds...@us...> - 2007-02-27 17:51:37
|
Update of /cvsroot/junit/junit/experimental-use-of-antunit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv851/experimental-use-of-antunit Modified Files: junit.ant Log Message: Added javadoczip target to build.xml, and some better separation in build.xml while I'm at it. Index: junit.ant =================================================================== RCS file: /cvsroot/junit/junit/experimental-use-of-antunit/junit.ant,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- junit.ant 21 Feb 2007 18:25:21 -0000 1.1 +++ junit.ant 27 Feb 2007 17:51:30 -0000 1.2 @@ -1,8 +1,11 @@ <project xmlns:au="antlib:org.apache.ant.antunit"> <property name="junitdir" value=".." /> - <property name="antdist" value="temp-dist-directory-for-ant-unit"></property> - <property name="antdistdir" value="${junitdir}/${antdist}"/> - + <property name="antdist" value="temp-dist-directory-for-ant-unit"> + </property> + <property name="antdistdir" value="${junitdir}/${antdist}" /> + <property name="testjavadoczip" value="new-england-javadoc.zip" /> + <property name="exttestjavadoczip" value="${junitdir}/${testjavadoczip}" /> + <property name="tempdir" value="tempdir" /> <!-- is called prior to the test --> <target name="setUp"> @@ -11,20 +14,51 @@ <!-- is called after the test, even if that caused an error --> <target name="tearDown"> <delete dir="${antdistdir}" /> + <delete dir="${tempdir}" /> + <delete file="${exttestjavadoczip}" /> </target> + <macrodef name="junitbuild"> + <attribute name="target" /> + <sequential> + <ant antfile="build.xml" target="@{target}" dir="${junitdir}"> + <property name="dist" value="${antdist}" /> + <property name="javadocdir" + value="${antdist}/ant-unit-java-docs" + /> + <property name="javadoczip" value="${testjavadoczip}" /> + </ant> + </sequential> + </macrodef> + <target name="testTearDown"> - <mkdir dir="${antdistdir}"/> + <mkdir dir="${antdistdir}" /> + <mkdir dir="${tempdir}" /> + <touch file="${exttestjavadoczip}" /> + <antcall target="tearDown" /> + <au:assertFileDoesntExist file="${antdistdir}" /> + <au:assertFileDoesntExist file="${tempdir}" /> + <au:assertFileDoesntExist file="${exttestjavadoczip}" /> </target> - <target name="testCharacterize_DistGeneratesJavadoc"> - <ant antfile="build.xml" target="dist" dir="${junitdir}"> - <property name="dist" value="${antdist}" /> - <property name="javadocdir" value="${antdist}/ant-unit-java-docs" /> - </ant> - + <target name="testCharacterize_PopulateDistGeneratesJavadoc"> + <junitbuild target="populate-dist" /> <au:assertFileExists file="${antdistdir}/ant-unit-java-docs" /> </target> + + <target name="testJavaDocZip"> + <junitbuild target="javadoczip" /> + <au:assertFileExists file="${exttestjavadoczip}" /> + + <unzip dest="tempjavadoc" src="${exttestjavadoczip}" /> + <au:assertFileExists file="tempjavadoc/org" /> + </target> + + <target name="testJavaDocZipDeletedOnClean"> + <touch file="${exttestjavadoczip}" /> + <junitbuild target="clean" /> + <au:assertFileDoesntExist file="${exttestjavadoczip}" /> + </target> </project> \ No newline at end of file |
From: David S. <ds...@us...> - 2007-02-27 16:20:59
|
Update of /cvsroot/junit/junit/experimental-use-of-antunit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv23383/experimental-use-of-antunit Modified Files: build.xml Added Files: junit-slow.ant Removed Files: junit-old.ant Log Message: Refactored AntUnit tests into fast and slow tests --- NEW FILE: junit-slow.ant --- <project xmlns:au="antlib:org.apache.ant.antunit"> <property name="junitdir" value=".." /> <property name="antdist" value="temp-dist-directory-for-ant-unit"></property> <property name="antdistdir" value="${junitdir}/${antdist}"/> <!-- is called prior to the test --> <target name="setUp"> </target> <!-- is called after the test, even if that caused an error --> <target name="tearDown"> <delete dir="${antdistdir}" /> </target> <target name="testTearDown"> <mkdir dir="${antdistdir}"/> <antcall target="tearDown" /> <au:assertFileDoesntExist file="${antdistdir}" /> </target> <target name="testCharacterize_DistGeneratesJavadoc"> <ant antfile="build.xml" target="dist" dir="${junitdir}"> <property name="dist" value="${antdist}" /> <property name="javadocdir" value="${antdist}/ant-unit-java-docs" /> </ant> <au:assertFileExists file="${antdistdir}/ant-unit-java-docs" /> </target> <target name="testCharacterize_DistRunsTests"> <ant antfile="build.xml" target="dist" dir="${junitdir}"> <property name="dist" value="${antdist}" /> </ant> <au:assertLogContains text="Time:" /> </target> </project> Index: build.xml =================================================================== RCS file: /cvsroot/junit/junit/experimental-use-of-antunit/build.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- build.xml 21 Feb 2007 18:25:21 -0000 1.1 +++ build.xml 27 Feb 2007 16:19:30 -0000 1.2 @@ -1,10 +1,18 @@ -<project xmlns:au="antlib:org.apache.ant.antunit"> +<project xmlns:au="antlib:org.apache.ant.antunit" default="fast"> <taskdef uri="antlib:org.apache.ant.antunit" resource="org/apache/ant/antunit/antlib.xml" classpath="lib/ant-antunit-1.0.jar" /> - <au:antunit> - <fileset dir="." includes="touch.ant,junit.ant" /> - <au:plainlistener /> - </au:antunit> + <target name="fast"> + <au:antunit> + <fileset dir="." includes="touch.ant,junit.ant" /> + <au:plainlistener /> + </au:antunit> + </target> + <target name="all"> + <au:antunit> + <fileset dir="." includes="touch.ant,junit.ant,junit-slow.ant" /> + <au:plainlistener /> + </au:antunit> + </target> </project> \ No newline at end of file --- junit-old.ant DELETED --- |
From: David S. <ds...@us...> - 2007-02-27 16:19:06
|
Update of /cvsroot/junit/junit/src/org/junit/runner In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22480/src/org/junit/runner Modified Files: Request.java Log Message: Removed untrue TODO Index: Request.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/runner/Request.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Request.java 21 Feb 2007 20:26:29 -0000 1.3 +++ Request.java 27 Feb 2007 16:17:47 -0000 1.4 @@ -102,7 +102,6 @@ }); } - //TODO add an example /** * Returns a Request whose Tests can be run in a certain order, defined by * <code>comparator</code> |
From: David S. <ds...@us...> - 2007-02-27 16:19:03
|
Update of /cvsroot/junit/junit/src/org/junit/internal/requests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22209/src/org/junit/internal/requests Modified Files: ErrorReportingRequest.java Log Message: Removed untrue TODO Index: ErrorReportingRequest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/requests/ErrorReportingRequest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ErrorReportingRequest.java 21 Nov 2006 18:53:34 -0000 1.1 +++ ErrorReportingRequest.java 27 Feb 2007 16:17:07 -0000 1.2 @@ -38,7 +38,6 @@ return getCauses(cause.getCause()); if (cause instanceof InitializationError) return ((InitializationError) cause).getCauses(); - // TODO: untested return Arrays.asList(cause); } } |
From: David S. <ds...@us...> - 2007-02-27 16:18:46
|
Update of /cvsroot/junit/junit/src/org/junit/internal/runners In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22370/src/org/junit/internal/runners Modified Files: OldTestClassRunner.java Log Message: Removed untrue TODO Index: OldTestClassRunner.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/runners/OldTestClassRunner.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- OldTestClassRunner.java 21 Feb 2007 15:19:39 -0000 1.3 +++ OldTestClassRunner.java 27 Feb 2007 16:17:26 -0000 1.4 @@ -24,7 +24,6 @@ } public void endTest(Test test) { - // TODO: uncovered fNotifier.fireTestFinished(asDescription(test)); } |
From: David S. <ds...@us...> - 2007-02-21 20:26:34
|
Update of /cvsroot/junit/junit/src/org/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2290/src/org/junit Modified Files: Before.java Log Message: Fixing exception handling and documentation Index: Before.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/Before.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Before.java 21 Nov 2006 18:53:34 -0000 1.1 +++ Before.java 21 Feb 2007 20:26:29 -0000 1.2 @@ -15,7 +15,7 @@ * <pre> * public class Example { * List empty; - * @Before public static void initialize() { + * @Before public void initialize() { * empty= new ArrayList(); * } * @Test public void size() { |
From: David S. <ds...@us...> - 2007-02-21 20:26:34
|
Update of /cvsroot/junit/junit/src/org/junit/runner/manipulation In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2290/src/org/junit/runner/manipulation Modified Files: Sorter.java Log Message: Fixing exception handling and documentation Index: Sorter.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/runner/manipulation/Sorter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Sorter.java 21 Nov 2006 18:53:40 -0000 1.1 +++ Sorter.java 21 Feb 2007 20:26:29 -0000 1.2 @@ -5,10 +5,11 @@ import org.junit.runner.Description; import org.junit.runner.Runner; -//TODO add an example /** * A <code>Sorter</code> orders tests. In general you will not need * to use a <code>Sorter</code> directly. Instead, use {@link org.junit.runner.Request#sortWith(Comparator)}. + * + * */ public class Sorter implements Comparator<Description> { private final Comparator<Description> fComparator; |
From: David S. <ds...@us...> - 2007-02-21 20:26:34
|
Update of /cvsroot/junit/junit/src/org/junit/internal/requests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2290/src/org/junit/internal/requests Modified Files: ClassRequest.java Log Message: Fixing exception handling and documentation Index: ClassRequest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/requests/ClassRequest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ClassRequest.java 21 Feb 2007 18:24:11 -0000 1.5 +++ ClassRequest.java 21 Feb 2007 20:26:29 -0000 1.6 @@ -60,9 +60,6 @@ // TODO: check all attributes try { fTestClass.getMethod("suite"); - } catch (SecurityException e) { - // TODO Auto-generated catch block - e.printStackTrace(); } catch (NoSuchMethodException e) { return false; } |
From: David S. <ds...@us...> - 2007-02-21 20:26:34
|
Update of /cvsroot/junit/junit/src/org/junit/runner In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2290/src/org/junit/runner Modified Files: Request.java RunWith.java Log Message: Fixing exception handling and documentation Index: Request.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/runner/Request.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Request.java 13 Dec 2006 02:10:50 -0000 1.2 +++ Request.java 21 Feb 2007 20:26:29 -0000 1.3 @@ -102,9 +102,27 @@ }); } + //TODO add an example /** * Returns a Request whose Tests can be run in a certain order, defined by * <code>comparator</code> + * + * For example, here is code to run a test suite in alphabetical order: + * + * <pre> + private static Comparator<Description> forward() { + return new Comparator<Description>() { + public int compare(Description o1, Description o2) { + return o1.getDisplayName().compareTo(o2.getDisplayName()); + } + }; + } + + public static main() { + new JUnitCore().run(Request.aClass(AllTests.class).sortWith(forward())); + } + * </pre> + * * @param comparator definition of the order of the tests in this Request * @return a Request with ordered Tests */ Index: RunWith.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/runner/RunWith.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- RunWith.java 21 Nov 2006 18:53:39 -0000 1.1 +++ RunWith.java 21 Feb 2007 20:26:29 -0000 1.2 @@ -6,7 +6,6 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -//TODO add simple example /** * When a class is annotated with <code>@RunWith</code> or extends a class annotated * with <code>@RunWith</code>, JUnit will invoke the class it references to run the @@ -14,6 +13,15 @@ * in development. While it seems powerful we expect the runner API to change as we learn * how people really use it. Some of the classes that are currently internal will likely * be refined and become public. + * + * For example, suites in JUnit 4 are built using RunWith, and a custom runner named Suite: + * + * <pre> + * @RunWith(Suite.class) + * @SuiteClasses(ATest.class, BTest.class, CTest.class) + * public class ABCSuite { + * } + * </pre> */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) |
From: David S. <ds...@us...> - 2007-02-21 20:26:33
|
Update of /cvsroot/junit/junit/src/org/junit/runners In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2290/src/org/junit/runners Modified Files: Suite.java Log Message: Fixing exception handling and documentation Index: Suite.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/runners/Suite.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Suite.java 21 Nov 2006 19:52:30 -0000 1.2 +++ Suite.java 21 Feb 2007 20:26:29 -0000 1.3 @@ -16,7 +16,7 @@ * Using <code>Suite</code> as a runner allows you to manually * build a suite containing tests from many classes. It is the JUnit 4 equivalent of the JUnit 3.8.x * static {@link junit.framework.Test} <code>suite()</code> method. To use it, annotate a class - * with <code>@RunWith(Suite.class)</code> and <code>SuiteClasses(TestClass1.class, ...)</code>. + * with <code>@RunWith(Suite.class)</code> and <code>@SuiteClasses(TestClass1.class, ...)</code>. * When you run this class, it will run all the tests in all the suite classes. */ public class Suite extends TestClassRunner { |
From: David S. <ds...@us...> - 2007-02-21 18:26:16
|
Update of /cvsroot/junit/junit/experimental-use-of-antunit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10549/experimental-use-of-antunit Added Files: junit.ant junit-old.ant build.xml touch.ant Log Message: With ant-1.7, this directory contains files for testing build.xml, which is useful for forward migration --- NEW FILE: junit.ant --- <project xmlns:au="antlib:org.apache.ant.antunit"> <property name="junitdir" value=".." /> <property name="antdist" value="temp-dist-directory-for-ant-unit"></property> <property name="antdistdir" value="${junitdir}/${antdist}"/> <!-- is called prior to the test --> <target name="setUp"> </target> <!-- is called after the test, even if that caused an error --> <target name="tearDown"> <delete dir="${antdistdir}" /> </target> <target name="testTearDown"> <mkdir dir="${antdistdir}"/> <antcall target="tearDown" /> <au:assertFileDoesntExist file="${antdistdir}" /> </target> <target name="testCharacterize_DistGeneratesJavadoc"> <ant antfile="build.xml" target="dist" dir="${junitdir}"> <property name="dist" value="${antdist}" /> <property name="javadocdir" value="${antdist}/ant-unit-java-docs" /> </ant> <au:assertFileExists file="${antdistdir}/ant-unit-java-docs" /> </target> </project> --- NEW FILE: junit-old.ant --- <project xmlns:au="antlib:org.apache.ant.antunit"> <!-- is called prior to the test --> <target name="setUp"> </target> <!-- is called after the test, even if that caused an error --> <target name="tearDown"> </target> <target name="testCharacterize_DistGeneratesJavadoc"> <!-- TODO: delete dist afterward --> <!-- TODO: DUP --> <ant antfile="../junit-head/build.xml" target="dist" dir="../junit-head"> <property name="dist" value="saff5" /> </ant> <!-- TODO: DUP --> <au:assertFileExists file="../junit-head/saff5/javadoc/org" /> </target> <!-- TODO: takes a long time --> <target name="testJavaDocZipCreatesZip"> <!-- TODO: DUP --> <ant antfile="../junit-head/build.xml" target="javadoczip" dir="../junit-head"> <property name="dist" value="saff5" /> </ant> <!-- TODO: dist name is DUP --> <!-- TODO: javadocs name is DUP --> <!-- TODO: delete this file on teardown --> <au:assertFileExists file="../junit-head/saff5-javadocs.zip" /> <!-- TODO: DUP --> <unzip dest="javadoctemp" src="../junit-head/saff5-javadocs.zip"></unzip> <au:assertFileExists file="javadoctemp/org" /> </target> <!-- TODO: delete dist on tearDown --> </project> --- NEW FILE: build.xml --- <project xmlns:au="antlib:org.apache.ant.antunit"> <taskdef uri="antlib:org.apache.ant.antunit" resource="org/apache/ant/antunit/antlib.xml" classpath="lib/ant-antunit-1.0.jar" /> <au:antunit> <fileset dir="." includes="touch.ant,junit.ant" /> <au:plainlistener /> </au:antunit> </project> --- NEW FILE: touch.ant --- <project xmlns:au="antlib:org.apache.ant.antunit"> <!-- is called prior to the test --> <target name="setUp"> <property name="foo" value="foo"/> </target> <!-- is called after the test, even if that caused an error --> <target name="tearDown"> <delete file="${foo}" quiet="true"/> </target> <!-- the actual test case --> <target name="testTouchCreatesFile"> <au:assertFileDoesntExist file="${foo}"/> <touch file="${foo}"/> <au:assertFileExists file="${foo}"/> </target> </project> |
From: David S. <ds...@us...> - 2007-02-21 18:26:16
|
Update of /cvsroot/junit/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10549 Modified Files: build.xml Log Message: With ant-1.7, this directory contains files for testing build.xml, which is useful for forward migration Index: build.xml =================================================================== RCS file: /cvsroot/junit/junit/build.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- build.xml 30 Nov 2006 15:07:16 -0000 1.20 +++ build.xml 21 Feb 2007 18:25:21 -0000 1.21 @@ -9,6 +9,7 @@ <property name="testfiles" value="junit/samples/**, junit/tests/**" /> <property name="unjarred" value="**/*.jar, ${testfiles}, doc/**, README.html, .classpath, .project, cpl-v10.html" /> <property name="jarfile" value="junit-${version}.jar" /> + <property name="javadocdir" value="${dist}/javadoc" /> <target name="init"> <tstamp/> @@ -62,11 +63,11 @@ <param name="dir" value="org" /> </antcall> - <mkdir dir="${dist}/javadoc" /> + <mkdir dir="${javadocdir}" /> <javadoc sourcepath="${src}" packagenames="org.junit, org.junit.runner, org.junit.runner.description, org.junit.runner.manipulation, org.junit.runner.notification, org.junit.runners" - destdir="${dist}/javadoc" + destdir="${javadocdir}" author="false" version="false" use="false" |
From: David S. <ds...@us...> - 2007-02-21 18:26:16
|
Update of /cvsroot/junit/junit/experimental-use-of-antunit/lib In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10549/experimental-use-of-antunit/lib Added Files: ant-antunit-1.0.jar Log Message: With ant-1.7, this directory contains files for testing build.xml, which is useful for forward migration --- NEW FILE: ant-antunit-1.0.jar --- PK Á[EÉtú1$<Î6{bfδ9Æp×Kldu oàC`ܧ\·dMÏTæx%oÌÕ²·FùQ1庾é0t_.åíú¤EóxÙpN¸ôÍC^èª9aTgèûÇaÛeGñ©ó¹%T2-\>2ìñD3´×+mNIJ´VW²EÌr¤¶ß Bú\+"«UvÕîv[»ØªÛZZW«®eçÞ;$Àó½îwÎùós¾óÍN>KD5|ØM:§Ð/ÜCçFPÞæMi~)ͯ¤ùµ4ÿ#Í[ ½í¦:'Íoèê¤ß*ô;ÞuS ýÞmæ*½ç¦fúBÿë¦1tN¥?KÿiÞWé¯*Véo*ý]¥ÿµÐt^e°þ¹s8WÂynÁùÒ(à̪Ê#@Ànd®©\(} r1drJ½\ÊùH*à2f G«<ÆMWóXi¼ »i¡h´ÞQx®åñB3AXNÑ$ }2y¦Êò4 ¯~:È3dT!£2ò˨R*iª®[oµÒ\)Í,ifK3G«`P8×Mx?DÿPùÃ*_-è²c¾ðB-׸ùZ^¬ð º©É:×Ks4ËnPøz¦ÑKÁP{KdqØ\+qÓ1&!~iHÇ8§nõê¦Õ[[ê[·Ö/nXQ·+¶ë»õÚî¬m6cÁpç|¦Â¥pÜÔÃæZ=0lÊÆ&©8µÐ¸µ|°×\ײfKv0©-uW/kZ×ÈänxõÁ`¨ZuÖêQ½Ë¨5#P¼bjÍ}Q#^3âD¬ #è ;lìYl7ÚL¦Ó:ß±{DÈQÊl½f0T»8Ó÷Y°GÆ"Q#fîk6LlS;ô`(hÜÀoÄb!/õ¦pLñilb}ZåPcë ½)·bæZè½4ÒK¯ÆÄÎV#Ö¢·1p¤MÕcA;.³+)¾lDüàZë%ðæêííL³+³ÛjÇnK#¡,!¦H9±6¦ÚË$dª¬¸ªÙBôÓ%SÀ ϪÌ7aÖV[\4>@ÜpL%qìëpeº¼°fp.ÂöúìwUlo±×hK8¹Qíbìsi¾-bÓ,gm0nFÄVùíÙÌTê@F,j.Ög iwD|L2F{ÝÞ6#ê¯+v2]18X+doÏï°8@*Ër-]±ÈñfÑaw:X:¬ Y, rBpÁiC¡\é\ªGMìu õASrwà4úkc0õX§·ÅYÒVêQ|ËÃÑ"¢MC-ìÁ¡ä·éÎ.àÖºôp{ÈhJѦEkÐYn-#Úíï aë³R±qICÃLIA³q f¸¸l~Èw]HOiKž!ͧ>w Ú3*µ×-Jidf$%Y;bO¿Î⨶¡ûê±Ùrr±»Ã@Häí¶ó|öeÐÔêlqa,k©'é³<Ð:&X¼X7MXI¾µ`B¼yDú±¦$æ`Ìïeª$`/ÛñEÛvFËÏrt4#DêþÁÄæïªÀ"··qu7[ÑlÃפW#´}â°¹4ºnÓèvi>Fû5ºCÓF¥ å,ÇøâÁpá¾öÏ0}Æ^9Wdf$¯ñ«á°l7-ÃYvõitþU£é;¹Ká ÆÛåàvÐAC¼SaMÉ@»Ù á¨Æ»xEjOVÖerñtãdX8ÎðÂã`9A¶Týý§ä¿G£Wé5÷ò¾¯÷?Ê7itRDÝLÏhô4¾EÖ^¿:%ÍiÁ0~¸T¡ñ|Æ·óÇ4Þ/º?®ñ¾SãOÈ <ýÒêò'þRt«7Ú U±³FÎFãOóg4þ,Na8û]¼Nã»yµF?¡*|Æ÷ò}ý% Sð0Í~ã´Ákw9û5~¿ ñbãn1ï!1ÐÄá2y5Bß:¤å¦¬Ð¯"ròþL)yòW!¸Â¦M=qÂK¾Ú Ù5]®û*.zûH¹ÕhUøNm6cøUåëѨFV VÎ]°dg$WÑ0ÌWÕ¤"mTÅ û°£ú²ÊiÄg0n=}¬%9Ìz0À¸jÐ)ô?S¢Wá³]z¼ÑØkJÅduý¦ïm5¯|ûXÁ¹ØSIjo¦¨ªìô6Qn(Ò)/4NCÊZRUÚ~-×ã]¦S1ö+ßp¶E¦Çoz¤DnW+2qeR~æ£ ±Þ¥ýxÚU~a¿Y|]P´Aëý òÖÛÐC@9y·Î®O@Zµ×ìzW6öÛS@»TOÄ,k\P?¦õÇ£2Þ% ºøh7v&ö¦ ÉÁÂz´¸mNQkOê± z"dZAeè;³JÈ| û¨d½§´<Ïùe¥F¢ËȲò0íF7âø4J²$Æ@í¦BÚGcpÒc=Þ$aÆyÆ;c×R=z(Ï3+Iö²"[|θÿ$M §ÃäDOÀWÄ¡}wfÐqª¡$ͧ§ph'`ð²Üó°£|¼NÛVy¦0l¥§,,McZYu®Ó»éLÏÓÆê$UtÃÑÏì%ùü)eáåX®òTÛ ¡uMÏùg3¸k¨ xÐYºþ6ÑOi+ýÌÂïÆj×áâÂÛÒǸÍrªÓ<j9^¡¶v®Ø]x|/ ¯¨ È`ì¿¿²®<N³`ðYI½²Ê3ç]Cª<sÁ<ýiò`1Ìúa¦@¾7ß¶oe«Wñ`ÿn^fâ@-ìEuB7xUÏ$]³Î«zéûèÚõ"¡FÈÀ«&iß«ôÒÒ2W7i²æ¤e)ôVu½pc¯¾Y?,Íñ,Çn¯;P;Oóºt] Ð[x r_ n)}]7rÍÓsáóTæ=T"ÃkÏùi¨À¼|XÉó³$×Ý«¥÷zëùàe¼$5HZ}µ=7pyt ¸ÿ·â¦Ç+T'=Á¤?§y ÞxÕÄWÖë¹OÓõVÿ:ÖOóKVÿ:Þv` güXzã/p¼A³éM8î¯i)½Gü 5Ó;´~KAú®±wÎÚ? ç¾ûüXFR˨_ä±ô{ée.º¿ûûÀ8ÞÆ÷wñý}Ë9ìå.&åú¢¿ó$°Ì\¯s8ç±s/c YåÙÍkAµ Gr;qGãù?o¯àuëwaý~¬?õ¯aýIÇÇxl0ç)ü] KLä3< öÌ/cíU¬½ñÛ¿ñy¨ÀʯâÎü*4táõô5äàC×! 'ÒµôÏt ¡C#ö=sºkèqúèz¸¾SAA¾-ôÖÌíô-v>Aø*hó%¤S) &i{ÏùW2Sn¥ÏÃwQ)ßMãùü÷Ó,~ÀÒæ*HJ]JfÎÙil³Q¹³¢s¶ME¿lé#ÿ;(Â\PÎñ¯ªp<Fà-ÏÂëuU¢ÙK=çßÈÀS?{éâ4¿G¨E.ürª)¨sÒPçàÆ[PçÐ!oç@¡Éi¨¯ÒkAUªrq¨¡A¡ÔÇõúMP<¨Oê·.ª\"ý¡þ<$ åt`ºªa;«QÞî̺_ <ï8ï8ï> {ÞÿhMçàqßÞgùâô4²é2¾ìÔ¡vÉðßðgy0uá¥ÿPK E Ë]ÁÀ^ÅòÅí¹¤ÚðBßâ+¶tÒv!5*5t¡¡ý| ô]E tjÄC²]çZxDÞCÛ)ÖtF¶½P/Ð]OèÁ·ìÝwzÙó¹.öLW÷\®[[´%\Ã#LIíiþZaµÈ¬>ÆY O@¬¡A»)òÝÀ¨KóxÊ`üóËn%ÚvÝ~.=+Éÿ¶³hò¢³ª-QWѹ¥K\Èþ©8È T!Ô, úã"Ù>-$T/ßKRO(lÇXvÃ2÷«Ý _Ye¹l»®*Cädmg[Nmï èvÐeÉî¢(N1õ=MÓ:£9;Ëeb_ÿLiWhLÑCÁ®R¤CÑkeú+4sئ\¾Ãýæ#sT AF×É] Ü K±ëéIÔzîÙ>å:NØÎ4Q®#yÖ§|¬,5WhN ÍðÚ ZÞ£óÛ¹/cÚÎ.\ "Iã"¹Z"ÏÈÙsòñy¼"¬aµÎízÅmÞÞN^(ShNÐ3±ýPK Hée°ÿùI?:9¤;ºÖî ëÓÏ1$eºÆé1íâ$MÊÔÇ('{}°g³3E1e¦¤ÝÄ4U Ï-Ì *c¨°.èf²UÜÛï#ö¶Em[û\¬LW9ÌsFÿ ?BB¨ê<Ö\ Ľìµþz2 ÎÒ<c«Ë|Ëå£kywöÔ}¶DûÎ{?+ctóºæÅg^'t«Z¡À4ÃÀy gB¥9R³ c"è¢O°¾Kýè®=¯Í[`â {v*ÖªØ>Ø®vlµìBY¹ë¸A+ÃMt<eÇú¿ÁwRò¢1ªé÷ÚJYeá)DE4î:Ë_5LX#ÿÁê>ÅIdÎvüqø7øÀªb_á;ÄÁCÔ ÒgÌçÿõ q¬aeL6Yå] [nè[ùüV~=¿·º,(ìF¶nXµlÑuL«6/0³¦kXnɨ·¤À tsÇTZ»»Ò!@äSñh1][@;NÙn0ZåVM@4¦ ¶SË £²'³®m×YòÝtì}YqÉHlÁ´LwQàBòdÕÙ¹ÊÙUr0V0-¹Þ:(Kç¶Q®KNÈ®õáÌwwÏl \îµËékÏlÁ®åÛrT6Ã5éæg³AÊ6å¬tY¥Ì3JLÉË_ñ#Ä/s§[f½Zt ÇU è2]bü¡´¼d£·TPmòO¶É¥ïâǯPm{,qæ'þ±Î\÷pTÅ×ÃÈfÓ¨q*5æãE»åTäÉU=ÝS¶IÇ%¼'0Ü':ÁyL¦L3ar5tlãÝ)åéÜL¦n×tìà} áCwñ{¸£ãcÊ:*¨êØÕQCZÇLá7M tÝ(ský×WáÙt¥Å¸Á$ßÊùÕjîêI×}¤¦n\'ð¤¢I«"ðXúWÀ!×öΦCÅk\?Þêô wä}(û²â÷c¥){òhdZ®YÏÞ2{.O!ãÄ4÷U+ɼÚtLÛ1Ýê6V½\Ö¼f%F£!-ê×ç w| ;ïµáYz)hx çèx^èÐGÝ«öuª³NwÖÎJÍLë(a/á2Ñgû t¬¥C¤~ÇÀÎc>B¤»v·±îVënRéGN§Ú§#´è»+DSC¸1\¥ äv×èd~07E¸§SP*ÒÔ¦wôÓ_P<Èﯴ1úï-¦ä7%ÝÓéX¢â£øÅ@ü\ >Ïâ3x- Ó:zUâ׸¡DNÃM}ãÒy%fÕ1Ûæ5ÜѰ òä'Ð_77ÍtÕ´+éϵìʸ@¸êTòrSVDN {²-oR /32ã¤À¡¼eËÙÆtÍBUª\NѬ.®¥ÆmcÈ[³êÃyǤÍY\iÓöÔÓ`ÖtÞ©dÛ3-»ÎÊZ]z>°c±ÿ#SÕçÂôòñiXdkN®³méfªf½.Yu4¶»¬ç8Õº_Ü3ë%Y®§UèðN¼_ "ÿKz»p®VnU¨{Z<`ÝfÍk¸Òe\3Ày}Cæ ë²èqZ_pnQ^³£wQRÎ>DÔÀ8i`',ã®ÀéЧVµÝ*Êg9¶ÀIoMFU+DM$Zõ¨+6,WTê³¾Ä 7ñ©6üñj¸gà+Ü8uð |Uß(ñ¦¬ ìÝç©F¹,]R±doØÎwvôU;^â*()! ±ª¡b` ÖþÚ\ éHÉm×Q4g5Ç6ûktÿ]/:vÉRô¥3¯Þ4¬¼M³°+í.öû çL§¡ F wn¾¶»âÄ~ó<LwGIiÙ6u:P-¸¬ëæUGÅ;] é]Óµ}5ÈÙeÇôr°,ÝSþ¸ãiYhTüQ·Y«I»Dª )?Ã@Ë«A½ÅW âôjåºÚÎI$u VÏ(1q¤ cö¯{©Ç¨ß¡¥>D§>L=¤½DßÊ6úû4qT%oâX À9©w ||º³ÖYñ·GcÅ>s'h¿Lʯ Oæùq]Ä4VÅ}\ç u%Ü [¨bÁ£×OXÀ#,ù|%üüàSVçÌyÒTì´9Ääö¹àsËEøÌF/"È¿PK X²SdDÓ,?Ba§Ý^vzÝÞ!|îöÿººéÃçÎõuç²ß=ëÁÕ5|¸º<íö»WtuË/ÁßÝËÓC@â@ð.Õ;%(7*¥@çR`)Lɦ¤Æ#*gÅ¢JÃÒÊmHÚO¥uåb'óiGGTùBÙXºBcùÀ11]N#ü)iÃv à¦Ô¹Ô !PÅö$Ì+×O®:ò+Æî9°FfaÞõ$_Ë_ØZËÈ^¸íiìxÙ"à±OÂ÷÷þëCØ^×¢º]²µ@l%«Vs%¾O£¹G«YÐögß2":y¸zl "K7Þ=hU£ý¶¬Å ¤ó³_8ùdààý}ØÃ'ÌáÑ<Ú¤BÇ=þM¨!½å!¹ÒE'϶+a³~}?é6vÞC[]dþûr1RÉü³KìÓ3íÀ>Û¶AåîVÄÏù~z㩼[»/åÎùíÞW¯Tfk5ôÉ>Õk!çy½sÑe<§ºì®¼ÝNÂeÆaÕ>Û©.O½¥2?UKÄo~¨*©²H[à#/ãÉË1_H/_: ÏIÀ¸aÊ׫¨5kïü½2?07 ËÒìªGµÓÂÎìú`p;&Ü¢CòöFvS@¶~Ócnò2c,Uu)ÙÈí<ªì«ÝìK»6ðæþëî¹_ZÓ\Ò+<V fÛ«ÇâiÓp§i&MwP²tSäÖÐËHYθxE\ º@ÍÏg¥z£_S²ÇP0©%0²£zWÜÝz|£nÆdìNú¬þÝ´ô¨B>*z^=·ÖI}Mô³:~-U÷¬?]»(ú+"91Õx¡L îEÄ\ãèKBxÚVÚN÷Ò1|-ɳkÜjt[y|R"þwExòÄ®t,Þ#0ºãÉûªQªÚÓÖ`ádú _L¶Ò[pY#L ykXl¹¾ê==«¨V°ÚC:+V2áMù*»U;ºAÚð:Ñÿß[,Tgd°2£3Ñ~3¹]Ú>pªç í¤íÂZu>#ÈÅæö1öRç6}@©×v'ç ©pñØÍ/ÌÔØæëÒÅÕ%ÔQrղ߲·ÞAtnÑ â+ý?Åü+ºãnE* uÁdÚì6ðîXõ¢6Ü®¡ ×jXF ×à-Vaµ/kø NiX kpfiÞ*MNkø*N«8£Á@¯Vz/ñxj¦âk¾oI«_A§þ¥'ECúr}%Z}©0ÜÆto¯Á*®êÖiø¾áfÜBgÕkø^Rñ²ïâ{*^Ñð}e ÊL»UÜ ñw²&zÄùv4J¢g¥à ª=EÓV,çø# ?Æ&ú1Í$ªï~[4ü?ÓðsüBÃ/ñ+ ¿Æo4ü¿Óð{üAÃñ'ÖðìÒpþªâoþW5\FÂ7PoYìGioïrjÝÂ|)?~ïUTáÇݱ˼]ºÓ¦]ïcFk,!¾&7×1:Fó¼x>WÙüË7ð#å\rõxI2%äÎeãçX~ÒºìS²Wof¾Nt+5ÛZ¤Ù j_WYq"_òÜJÓ¢*ïÌ~½©æòÑ»jÖDë¬e¦JÆ·¹ÕdÞE×}Ì÷(ð¾°¦ç)\ä¹*ó_ b´Äý()qä´e£¯/ÊÇÈØð Mc ¹Íh1ôê¼Nbv§iÙ×WÇDìeäòÅYÜݯ+I¬/Ô\Ýd¿jøzÕ->;¹ÀrÖ$÷}º+åºz*ż`UÓëÝôIe¨©ÉSäâ o÷¶µmíÚ¶´´76··)û¦Òû¿Ã{so¨5ã\Nÿ¯Á7A®7#YR°øG¬@. »çmd÷¼ìw{Ü?vßìökÜ×Ý·Ú})¿ÚÐNôuur!ûIáa(á!kPxÈ~ÛrKØ^ ÞNÝÍWSº@¤E?ߨjA{v½½G*©¬JÅØLÆIxÞé U0ë]ÄÚ«É6OÁõòÀ*ÕC,#ÖzL°nîb]Oi!tZø( ÃáÂÍCðóBp¼Ô» *L§r|1-{À4t¡Û¦sÕp|Á§{T»«vEÍaìC);mÔ£¸hü1ÛØogì̱£"{L;ý¶1luÁÛ¸O¤Ê;JÃGôÝàaÂ4á6LÆ»s°Ë³Øå¸v.v+÷ÉÎ h`<黨¿7,`(_ $)`<z@ûÚ?úöw¾hÓ¦;ËV0þT®½¦t¶µ2ü2T^ÁäÇI;,çp7"BÅ*:å³hSZ÷C¥ÆlÜ¢Úç&¦z!Ý;ÊÎaL+AU¸&ìËgÊà Ùe0«Á'¹xS¡(«|\²³F0»³Ê79ûQ&ß",ã¹ E#×YEåæ·íǤâ,è¬*ÆÂã¹:Qɺ#XÔY[7ÐAq/ã\êº.î&9÷`îC5îgey%ïA¼Xªf0=B÷?ʯǸ{÷?I'p{ùæ{ ¯âiüÏØN¹$¥ÒÚbîèbà6ýÂØÁ2P$.Ⱥì5;/¤4üÁÝoÁ³\ô³"ïf7.¸i©;$¹$ePMÓ ó²Ôzµµ2!êZHzýL©!Ûøl/5dvqKMY}Ù./k°;.Õ³¶ª0±GXw2¬èÏåD5CwÍKoåO"ï6f£üvÛ@`æa,i9»1¹ædpE[Ý)ú§µvôØd 8Æ ÇÆ'Ü'Y=^@ÿêÈÑa®TPæ=Ì1QbfV,g¦}Ô4r¹x~æàí®³íÄ ;×4ðö[ÀPK $X´UÔVK½¯z[ï£úøñû{3lXèA>Ì{ï÷~ïw|Ç{ûøÿyÀ<üWÇÍnIBÃ^·&±·Õ¡·Ël|Þªã$ê°_Èwê¸+ wËâmI~ÞnàI¼÷è¸×À»Ha¯|Þ-ûxÞÄûð~ù|@Ç4ð¡$¦âÃrì#"è£>&ãÇåÌý>!Oø6ð&ß³òÄxÐÀgÅÏi÷!c¿ öø¢/ÉöCròeqX88*ì#²5pL_Nâ7ð¿jàQa?aàkIÄ× <¦ã:¾©¡Ö+&wn·wÚÍ9¯¹«JAwà;öÐb ñë:~%·rîàf?8>jýIåíõÜ Ê»ksn.XJ¶ôìMbm^¿£a\gÎuÖú¿ÇîËêô²v~íçdcÁ¶\QÃÂNÏl¶vvÓl»ü(µ9+k^·sî 7ØHjgD¤r³èÝÛßé öxê*æf¸Õ·E*ZÓÏ«£Õ.:ç¨Q¸XçCÙË.Qúb`ûASºKRÃü³ì</_T×ûÞv',ÑÏÛî`eP³«22]«veBó\êP|t^ôË'x}¥\¾¿=ë<ut×°Rm±OÃóxZKaXèi o±'vê~ÉíÉ ]GueèAºº{ ²:dÐ#¬çö3¢ÚJ I»¿¿ÝÎåK>¥¶Wr¡@`VøvúM¡jSÚU/ú¨æ¬ò}Õ©fÌsm¾7,5 NªºÃxþD"cÁîG´¼Ë«TÊ,2'Ùíü¬´±Z ͽ\R:³ôyÀÄ:ìà4Ø¥¦§L¬A¸Áļ^ÃÄjíEX»L\ë5L¨Ò`dÿ[&:±ÖÄ·ñN8¯èlß<_Çã&ÀwÙ¾ªg#±UòÚZ,ßÃ&Nã)ß7ñüPÇLü?1ñStUQQK®¨ µ\Á5y£+³Ïë-OuZñ¡dâgø¹_t¤rÑb9A¿ÄÓbÕ¯hi%sQ6~§Ã&K _Q~#&KªÈròv¡èôý·øßøþÈ4±X"&\ÁLl¸=ªZ,&Oü;LüEÓ¤üU(ÜȳÚWtt®ZibXìP¢R+k¨Í²]kÕ ]Lü ×ñÿÄ¿XÍuv`Ih(éßÐde½|iÈU¢ l²nS,ÚgMüOÑ: ^JïgÃ| 9«¡çR¯êjBºÜ£Qµ/Þ%woµf0ûB÷qCënêbÂPu}g·YvvÃNØ ×ÐôNÛ·x! E®*¹á\ÑÆÖÝܵ±ôì-_é NÕÇôVu©äKÅmÆgK¾ï¸$÷Ú\>/¾)xUÄÕUA¬6¯äJìÐ05Ýq'̰¢IGª(ZÔ¸åû+pvÍáK¥]uÛÅgzÉy;Dt LJ¯¬ L<÷ÒmÓÕë.HcÈýܺ¦+ZÞ c}¦óe®~i<oï¿ì¢ÆòM!MHÇÚ¦Êö}BõD|Q9c:ߢ«ùÂE´|Îj¤«}cêlóü®çj5b2Ç¡õ¦jFQ"Ñ"qH{-¿õ\q¸1¸2ÃèFGM.HèRªáÈÌ þ¤¢^8ZÉ!W$Af½xehrG ²4&¸WÈÌi A3ëzG<1½#3±GQÉ4`N5ÃøuÇêMMÅÄXc;67ÆæÊÀÆØ&àe#"Ë4ÄøøqLíM½¢1>ËN¢þ5Ø /¬o! ÀZ³ã±c6V Ükãl%O´c3AÝJÐm®²Gø7(T\xwãâQÙïÞ7)4<ÕG}Í嬢 Ó@)«ü§a=¸ÜiU^tÛ· îLÁ+77&RW(2#¢Ì,SfE+CÊÃHO¿{"f{#RR!~Æø Ub2ygá ÇæÖ¢G8ësqf«Ñ èµØÃßf º'éâa<¦Æ0}Âï::ß B1Ôw.Á\D81 ;°ÔÍðì`JN{û]þ^B}?Á~ >DXð£zë'¸~*Xk nrµ3]Öér°NGÁªÃ)lC¶7à [vQaKW~T¶ªK`¦Æ«2×(®J]MdíÔ|~¨Î¾í»3¯¨e³fÞ§jg¨¬nOÄ8.³äÕ kG¥Þ TǧÃX«@+íÎÕîq,°òoTÚ-E[PÖ¾ Ò^YpÉ[Ã9/=äþzUïɤ®áÐr®`0;+4Ô5ÔGdæ3¤¢¡ªgR×VÓ°vSà a§êaÃe Ï[°Ü'è«EÒn¬cKYz Uå`Uò¬yyÂòiäi#u¬,D6S«ÎÊ{*pÜL«oa7ÞË.}+{ìm,}Lú;èí~Ü;ÏвÏûIèó>"#>×ó»oVú¥ç&ônÉÕZ÷PK ëxÄàQq ËãrËGuìq_ öã ?àI #FýX1ãrÍS"ùi?âc²ü¸8¤ã°Ññ ?©ãS~|ųÅënZù'>+üÏìÏɽÏM×ñáü¢|¾$/ëølU/èø,¾îÇ8¢ã2~SÇ·üø6¾#B¿«ãj×øñ=|ßà~ð#?~Èç§~¦ãç~¡á ÅmÍ-= öKÂÛáX81ê¶ÑÄ@£Â&+²Ã {s86 ´0'õB]i{(mÝÇÉ^8*ÌÊmoIFm3Éâ~+¾EöêÚä@(<!Û²b©¥Òv4jîêhq3açÎö[¹O QL¨Ù¤ Û¾¤eQÊ£ö]Ü.¤IN{̹Ï&¢ö Y±g¬~ZTÖMéxì ÷ÅLÂcÃɨ¬]¢Ï¦Vå«/ó/M©¡X4e 3º £}}Âî%Ý%QÄ0é¨Ñ¦e §×xãpn񼀯ÇúBT.±£qÊÇ Ìbxé¶®sÈZ 1Ü&+KaáôwQn_:ëßC 3ѧ¨â_IN{ÞXãZ1YL2hîy¸¿c8K')c£Ç¹©°\JI±DNýÉEaJ;õUUЩNK2i%^ÊLPzÖ°¸Ý¹°Òso³ñ°íT1 EÞ8K8¹:ht_*<àÄÓÎ!8·V+e'ÂqR*jVx%â¢1aÚ¡ÞÄ¥ k8!Gòíów[édÄÌxqî±a¸R(¬~¥ [4U`¨BA§Ü#mNòÄhäfú(Bc¡T±¡4¥kªÄP~Uj(CÍà%j&uÚI>²))jJ¨r5KV>©%m¨*7T ªs5/jLCU©ùÒ¢¯.×E"è3Ô äÆN\Æv/1ð\aàr\Aåu¢Z © Z¤ª1ÖÙSg µX(FÄ¥ãMSKu¡SKUµ¦N6Ô2µ\S5Z!Ä ªÕT¡êÕJC pÂióNI·(öê6KôkH W|!¦M°)*¿¯æB§Ê²TtÉìUÁVLõ*×Öxïx_µdÚLíåÈT/MÃÙwXakÖ/t }Eئ÷ +<íñ~ÕKRxcÑË˦ÆáèúYî!!2íõ6yúÒòØ-þ]ÈÉ;UsUÃE©8óD(á Î1xõT{X*óÙÄÂÉp&¶Ëk&wX¢S©5d&r¦]ã ßämÇÞêDÚÉSasMÔÛÛ:[.în97[9s¢Yå%<¦|\8hU}ÍtªOèÉt¢ÉJ,ÕÆ~tòAíÒÏvm¦ÍyxhÈievdÒí85¢M¯y9m¸ÕÕßïÔRwoÈNV¸ÂìlËjÞŤIe»è;]Ø$F6{iDbVj"¶ÅÒ©AY¡jÂéE¥IÌ\!L¶ËöÉî~ÅîhÁ´,rM®[wì¤wËHmr^,½Üãz"I¾lûU3öàQvõeÚe]JO#C¤eH'étÚ7ѨD.íI#æ¤Â7*rOZ?ëûûùvS¸á¢ku³yY&16Nt¢ óGb/gjÍØÂÓpU@z´dν3²×rF¶KÎÈîÈ#ÎX³ìøÝÆÕø8Bm ¡0àCQP 4m+WúJö;"ø ðÐ2 ¬B51H(.ᨤÛË\¢6¡Ø9³/X[70X7Ò|ckðIfaæÊã5ÙAÒfO¡¼ EämBû Ü)AgÄÉÅPfCx«£Å>$ÉWÀy*ëÍÔ£{GckƱ¢³S¢X;:±Se¾ÀâQÔ;<+³<¡©yNÉò:5ÏiÏ8NçjyC^gãõ̰>3ã ³ÄÇÅ£hØù7ø²ä*Ñ,àÑñ9~áygÌxc3*ù½~x%{)C|%û,w+:\ëñÜNDo ÂwÑÇåRbS8R·ã®_Äwüx;}Ôãpwä¼s$ç#9ï°ÃvSk/½#ümÁÚ14ÜÎ&n#XÍùê@em~d®vA;&;ºplÄ\8.£ZÀÛ©êåLË+±}û©¸<×ëÔ« ĵAÕTfkF¨3£fKEQ4=«üÓ®òªâ×Lv·|ÊòÝgˬcÐg-Xßë õÔþ&Ôãfîï"Ç-hÆèÀmöA?ÓLÜQÀ ;:svtæìà×Z!vÌtJÏÚ``õÅl¦³{;½3Y¤d'+w¦+Wfo#Úâfþ4ò¼aC0ÐäuÃ]¼ánÞpÏqÜp%OÈ/07ÍWÓ¿ÅÜÛ%ÐÖJæI-lnðUà;Q^ØèL¯NHÉâ ½Õfé<ÕÖPTUô,æVbÓ½(«#Tg»>ÐÎyÇ(:3K:¼+?¥3>ö¨×âÝ9nÀ,~ï£vsv?æáÔ`NÁÃt죬±6>άÝKîcÀíçù')á Áº|ĨO] ÁÎäß,æÕUhÏKPo!$×çåä®»ú(wQnJþwÕÅQ¦tçâ¼}íî}s1¯;ÿ("å0£óG9ÜÓI·©¨ðºP ùÞ÷:ÿ,Ñ×÷ äÿPK öåý=ýÌuã0ïGcVd¸þ ¼ªx Ö? )~¿Pü~¥ø5¾½)æoÿPK c0»°^¾[Iâö¸[YøïíSÔ(©´Å.,3 NÚÃ÷7w?mÙjsÍ^ßn®×÷ëÛͽ¹½cÛÝݼ»»½~xzëz½½¿[÷O/ìZÔ²°iá9ü,f¼iX+xÇ|º5w+UWÙ¬VFL^«j,ñqáÛ4»ÿ¸a^,*¶;±(-/àÆý}ÃT ¿HxOc+ºa;¥ÏØ+UÒr:vB3`ËáÄø8ÿ¦;¥¹3îÞkG»=½äô1aCìyÃnè3VÆE%9ã%Qò¼BàÝ@HÁ+Q)e ì+ ϵÜÞ ×C:´Z×%©Ö'Òç8¹ 6U£Ó"z¹³$]àª-IkòÔ Ó -DH÷¸ÿAÏéx+.½HHYºæ%zÏC- Uç^ðó0ÔÙA. }=Ü ¹ÌBäÛC6²z¢sðÆÇ(p°^(¸¼ÉÞ;È0.ÅxCGü.Hè*Êþg%Z æ³u&>Ç wöØñ<ë¨ñdG@fìÆF®~úL"²)-aIKïÿ"_9eÇ«@/)vXDkòU{XvJª°îëX5-ò è-U¥Ì'½£þ B)êçU]#r²!HÖö!ï(=X3 \á@¸Ã¢|¨ k13ïû[]Õ¾1Ç9öÊKм}7ôIdR=ÛAtõ¤Ø5ä(ß? kf.Ì%4⪮B¢\ú:8=Ų¶«Ô 9î#Å×È%[×è Içe £¡¯ roÙà{¦dèÆ±Ì%¸]+c^êPRÅìïà5ühF9 ÀØÛ²ó¤b?KTE,óÆ5û)¥2êä ó¶i ý!êrßÐË7Â.|3cÏJÎl5ÁàEKFßáÆ¿ {wzzØV1U|µdw"[-bæ*ÈÒc¤IÖz5Âu#$Cò,DFðÿ*©èyãnAÀG2^.RMênÖîµj ÿ²Ág¸Wi¾àVæ<p|#¶¯SK[ ªÎDæTS¦ýÊ·®ÇwÉÍv¬¡:öm8I°#'®mìÐl×j2&0Gª8BØj¥t~ܯŠvêp-;BÁ¡¾?ØÞ3ÝÂë±Í|GB¿[gD;S\ÜQf;e»PnxUá¿5vX©ft¼ }Ѥã83Ï×Ô^¹íí#Â4KöÐA6dBñ×[p¢,ËiQq[2fûèh-í)ðÖéÉÂÈ]:=ÿïBÞÕÄ ,«¸yµ6jÀca?E5i§l+a½§¶±gF(FTÂ.»0@2¹Ë,F±C]ÐghÂöÐKR@\äP(DJÓA1Zì¹¶Û³i§l6þÓCI4Áë¢<;Xhl½ÐnhP\Îðç{álNèGÜO¸_3çÛöeïÌïè;±MÖâ·Qº BH@&è Z\Ù#G qÀ.%êÌ498a>+ûHóVtd¦hDýuÉ®¥¡ W×5{Ø4t áÞlM ¢J÷ fxÛGq¢PKÑTAY`Å·³|vñ˯$MÒÄÕÊw2Ê®ßLºù%»¸VÝÂ7YûþpÉhj@m²þDàÅu!IáÏvÓKæ5à),i¸`lGk8û¶ðÆÌOo[ÿC4l[=°½/æ~±¼ñÓÚGn] |
From: David S. <ds...@us...> - 2007-02-21 18:25:37
|
Update of /cvsroot/junit/junit/experimental-use-of-antunit/lib In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10494/experimental-use-of-antunit/lib Log Message: Directory /cvsroot/junit/junit/experimental-use-of-antunit/lib added to the repository |
From: David S. <ds...@us...> - 2007-02-21 18:25:37
|
Update of /cvsroot/junit/junit/experimental-use-of-antunit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10494/experimental-use-of-antunit Log Message: Directory /cvsroot/junit/junit/experimental-use-of-antunit added to the repository |
From: David S. <ds...@us...> - 2007-02-21 18:24:47
|
Update of /cvsroot/junit/junit/src/org/junit/tests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10311/src/org/junit/tests Modified Files: AllTests.java Added Files: ClassRequestTest.java Log Message: Test handling of private suite() methods --- NEW FILE: ClassRequestTest.java --- package org.junit.tests; import static org.junit.Assert.*; import org.junit.Test; import org.junit.internal.requests.ClassRequest; public class ClassRequestTest { public static class PrivateSuiteMethod { static junit.framework.Test suite() { return null; } } @Test public void noSuiteMethodIfMethodPrivate() { assertFalse(new ClassRequest(PrivateSuiteMethod.class).hasSuiteMethod()); } } Index: AllTests.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/tests/AllTests.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- AllTests.java 21 Feb 2007 17:12:37 -0000 1.9 +++ AllTests.java 21 Feb 2007 18:24:10 -0000 1.10 @@ -11,6 +11,7 @@ @RunWith(Suite.class) @SuiteClasses({ + ClassRequestTest.class, ListenerTest.class, FailedConstructionTest.class, // TODO: What did CVS do with this? CustomRunnerTest.class, |
From: David S. <ds...@us...> - 2007-02-21 18:24:47
|
Update of /cvsroot/junit/junit/src/org/junit/internal/requests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10311/src/org/junit/internal/requests Modified Files: ClassRequest.java Log Message: Test handling of private suite() methods Index: ClassRequest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/requests/ClassRequest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ClassRequest.java 21 Feb 2007 17:12:37 -0000 1.4 +++ ClassRequest.java 21 Feb 2007 18:24:11 -0000 1.5 @@ -56,7 +56,7 @@ } } - private boolean hasSuiteMethod() { + public boolean hasSuiteMethod() { // TODO: check all attributes try { fTestClass.getMethod("suite"); |
From: David S. <ds...@us...> - 2007-02-21 17:12:43
|
Update of /cvsroot/junit/junit/src/org/junit/tests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv11377/src/org/junit/tests Modified Files: RunWithTest.java AllTests.java Log Message: Better error message when a custom runner has a wrongly-signatured constructor Index: RunWithTest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/tests/RunWithTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- RunWithTest.java 6 Dec 2006 01:22:48 -0000 1.2 +++ RunWithTest.java 21 Feb 2007 17:12:37 -0000 1.3 @@ -1,6 +1,6 @@ package org.junit.tests; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; import org.junit.Test; import org.junit.runner.Description; import org.junit.runner.JUnitCore; @@ -57,4 +57,28 @@ JUnitCore.runClasses(SubExampleTest.class); assertTrue(log.contains("run")); } + + public static class BadRunner extends Runner { + @Override + public Description getDescription() { + return null; + } + + @Override + public void run(RunNotifier notifier) { + // do nothing + } + } + + @RunWith(BadRunner.class) + public static class Empty { + } + + @Test + public void characterizeErrorMessageFromBadRunner() { + assertEquals( + "Custom runner class BadRunner should have a public constructor with signature BadRunner(Class testClass)", + JUnitCore.runClasses(Empty.class).getFailures().get(0) + .getMessage()); + } } Index: AllTests.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/tests/AllTests.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- AllTests.java 21 Feb 2007 15:19:39 -0000 1.8 +++ AllTests.java 21 Feb 2007 17:12:37 -0000 1.9 @@ -6,7 +6,8 @@ import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; -// TODO (Feb 21, 2007 10:05:41 AM): organize these tests +// These test files need to be cleaned. See +// https://sourceforge.net/pm/task.php?func=detailtask&project_task_id=136507&group_id=15278&group_project_id=51407 @RunWith(Suite.class) @SuiteClasses({ |
From: David S. <ds...@us...> - 2007-02-21 17:12:40
|
Update of /cvsroot/junit/junit/src/org/junit/internal/requests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv11377/src/org/junit/internal/requests Modified Files: ClassRequest.java Log Message: Better error message when a custom runner has a wrongly-signatured constructor Index: ClassRequest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/requests/ClassRequest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ClassRequest.java 24 Jan 2007 16:32:59 -0000 1.3 +++ ClassRequest.java 21 Feb 2007 17:12:37 -0000 1.4 @@ -1,8 +1,7 @@ package org.junit.internal.requests; -import java.lang.reflect.Constructor; - import org.junit.Ignore; +import org.junit.internal.runners.InitializationError; import org.junit.internal.runners.OldTestClassRunner; import org.junit.internal.runners.TestClassRunner; import org.junit.runner.Request; @@ -11,6 +10,7 @@ import org.junit.runners.AllTests; public class ClassRequest extends Request { + private static final String CONSTRUCTOR_ERROR_FORMAT= "Custom runner class %s should have a public constructor with signature %s(Class testClass)"; private final Class<?> fTestClass; private boolean fCanUseSuiteMethod; @@ -25,15 +25,20 @@ @Override public Runner getRunner() { - Class<? extends Runner> runnerClass= getRunnerClass(fTestClass); + return buildRunner(getRunnerClass(fTestClass)); + } + + public Runner buildRunner(Class<? extends Runner> runnerClass) { try { - Constructor<? extends Runner> constructor= runnerClass.getConstructor(Class.class); // TODO good error message if no such constructor - return constructor.newInstance(new Object[] { fTestClass }); - } catch (StackOverflowError e) { - throw new RuntimeException(); + return runnerClass.getConstructor(Class.class).newInstance(new Object[] { fTestClass }); + } catch (NoSuchMethodException e) { + String simpleName= runnerClass.getSimpleName(); + InitializationError error= new InitializationError(String.format( + CONSTRUCTOR_ERROR_FORMAT, simpleName, simpleName)); + return Request.errorReport(fTestClass, error).getRunner(); } catch (Exception e) { return Request.errorReport(fTestClass, e).getRunner(); - } + } } Class<? extends Runner> getRunnerClass(final Class<?> testClass) { |
From: David S. <ds...@us...> - 2007-02-21 15:19:49
|
Update of /cvsroot/junit/junit/src/org/junit/runners In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv26251/src/org/junit/runners Modified Files: AllTests.java Log Message: Improving test coverage on OldTestClassRunner and AllTestsRunner Index: AllTests.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/runners/AllTests.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- AllTests.java 8 Feb 2007 03:29:22 -0000 1.2 +++ AllTests.java 21 Feb 2007 15:19:39 -0000 1.3 @@ -22,10 +22,10 @@ public class AllTests extends OldTestClassRunner { @SuppressWarnings("unchecked") public AllTests(Class<?> klass) throws Throwable { - super(suite(klass)); + super(testFromSuiteMethod(klass)); } - private static Test suite(Class<?> klass) throws Throwable { + public static Test testFromSuiteMethod(Class<?> klass) throws Throwable { Method suiteMethod= null; Test suite= null; try { @@ -34,7 +34,7 @@ throw new Exception(klass.getName() + ".suite() must be static"); } suite= (Test) suiteMethod.invoke(null); // static method - } catch (InvocationTargetException e) { // TODO need coverage + } catch (InvocationTargetException e) { throw e.getCause(); } return suite; |
From: David S. <ds...@us...> - 2007-02-21 15:19:46
|
Update of /cvsroot/junit/junit/src/org/junit/tests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv26251/src/org/junit/tests Modified Files: AllTestsTest.java AllTests.java Added Files: OldTestClassAdaptingListenerTest.java Log Message: Improving test coverage on OldTestClassRunner and AllTestsRunner --- NEW FILE: OldTestClassAdaptingListenerTest.java --- package org.junit.tests; import static org.junit.Assert.*; import junit.framework.AssertionFailedError; import junit.framework.TestCase; import junit.framework.TestListener; import org.junit.Test; import org.junit.internal.runners.OldTestClassRunner; import org.junit.runner.Result; import org.junit.runner.notification.RunListener; import org.junit.runner.notification.RunNotifier; public class OldTestClassAdaptingListenerTest { @Test public void addFailureDelegatesToNotifier() { Result result= new Result(); RunListener listener= result.createListener(); RunNotifier notifier= new RunNotifier(); notifier.addFirstListener(listener); TestListener adaptingListener= OldTestClassRunner .createAdaptingListener(notifier); TestCase testCase= new TestCase() { }; adaptingListener.addFailure(testCase, new AssertionFailedError()); assertEquals(1, result.getFailureCount()); } } Index: AllTestsTest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/tests/AllTestsTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- AllTestsTest.java 6 Dec 2006 01:22:48 -0000 1.2 +++ AllTestsTest.java 21 Feb 2007 15:19:39 -0000 1.3 @@ -59,4 +59,16 @@ AllTests tests= new AllTests(AllJUnit4.class); assertEquals(1, tests.testCount()); } + + @RunWith(AllTests.class) + public static class BadSuiteMethod { + public static junit.framework.Test suite() { + throw new RuntimeException("can't construct"); + } + } + + @org.junit.Test(expected= RuntimeException.class) + public void exceptionThrownWhenSuiteIsBad() throws Throwable { + new AllTests(BadSuiteMethod.class); + } } Index: AllTests.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/tests/AllTests.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- AllTests.java 26 Jan 2007 14:04:13 -0000 1.7 +++ AllTests.java 21 Feb 2007 15:19:39 -0000 1.8 @@ -6,6 +6,8 @@ import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; +// TODO (Feb 21, 2007 10:05:41 AM): organize these tests + @RunWith(Suite.class) @SuiteClasses({ ListenerTest.class, @@ -41,7 +43,8 @@ InaccessibleBaseClassTest.class, SuiteMethodTest.class, TestClassMethodsRunnerTest.class, - IgnoreClassTest.class + IgnoreClassTest.class, + OldTestClassAdaptingListenerTest.class }) public class AllTests { public static Test suite() { |
From: David S. <ds...@us...> - 2007-02-21 15:19:43
|
Update of /cvsroot/junit/junit/src/org/junit/internal/runners In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv26251/src/org/junit/internal/runners Modified Files: OldTestClassRunner.java Log Message: Improving test coverage on OldTestClassRunner and AllTestsRunner Index: OldTestClassRunner.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/runners/OldTestClassRunner.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- OldTestClassRunner.java 8 Feb 2007 22:45:21 -0000 1.2 +++ OldTestClassRunner.java 21 Feb 2007 15:19:39 -0000 1.3 @@ -15,7 +15,49 @@ import org.junit.runner.notification.RunNotifier; public class OldTestClassRunner extends Runner { - + private static final class OldTestClassAdaptingListener implements + TestListener { + private final RunNotifier fNotifier; + + private OldTestClassAdaptingListener(RunNotifier notifier) { + fNotifier= notifier; + } + + public void endTest(Test test) { + // TODO: uncovered + fNotifier.fireTestFinished(asDescription(test)); + } + + public void startTest(Test test) { + fNotifier.fireTestStarted(asDescription(test)); + } + + // Implement junit.framework.TestListener + public void addError(Test test, Throwable t) { + Failure failure= new Failure(asDescription(test), t); + fNotifier.fireTestFailure(failure); + } + + private Description asDescription(Test test) { + if (test instanceof JUnit4TestCaseFacade) { + JUnit4TestCaseFacade facade= (JUnit4TestCaseFacade) test; + return facade.getDescription(); + } + return Description.createTestDescription(test.getClass(), getName(test)); + } + + private String getName(Test test) { + if (test instanceof TestCase) + return ((TestCase) test).getName(); + else + return test.toString(); + } + + public void addFailure(Test test, AssertionFailedError t) { + addError(test, t); + } + } + private Test fTest; @SuppressWarnings("unchecked") @@ -31,48 +73,12 @@ @Override public void run(RunNotifier notifier) { TestResult result= new TestResult(); - result.addListener(getListener(notifier)); + result.addListener(createAdaptingListener(notifier)); fTest.run(result); } - private TestListener getListener(final RunNotifier notifier) { - return new TestListener() { - public void endTest(Test test) { - // TODO: uncovered - notifier.fireTestFinished(asDescription(test)); - } - - public void startTest(Test test) { - notifier.fireTestStarted(asDescription(test)); - } - - // Implement junit.framework.TestListener - //TODO method not covered - public void addError(Test test, Throwable t) { - Failure failure= new Failure(asDescription(test), t); - notifier.fireTestFailure(failure); - } - - private Description asDescription(Test test) { - if (test instanceof JUnit4TestCaseFacade) { - JUnit4TestCaseFacade facade= (JUnit4TestCaseFacade) test; - return facade.getDescription(); - } - return Description.createTestDescription(test.getClass(), getName(test)); - } - - private String getName(Test test) { - if (test instanceof TestCase) - return ((TestCase) test).getName(); - else - return test.toString(); - } - - //TODO method not covered - public void addFailure(Test test, AssertionFailedError t) { - addError(test, t); - } - }; + public static TestListener createAdaptingListener(final RunNotifier notifier) { + return new OldTestClassAdaptingListener(notifier); } @Override |
From: David S. <ds...@us...> - 2007-02-21 14:46:56
|
Update of /cvsroot/junit/junit/src/org/junit/internal/runners In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12633/src/org/junit/internal/runners Modified Files: TestClassRunner.java MethodValidator.java Log Message: Rename validateAllMethods to validateMethodsForDefaultRunner, which is clearer Index: TestClassRunner.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/runners/TestClassRunner.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- TestClassRunner.java 6 Dec 2006 01:22:48 -0000 1.2 +++ TestClassRunner.java 21 Feb 2007 14:46:51 -0000 1.3 @@ -30,7 +30,7 @@ // TODO: this is parallel to passed-in runner protected void validate(MethodValidator methodValidator) { - methodValidator.validateAllMethods(); + methodValidator.validateMethodsForDefaultRunner(); } @Override Index: MethodValidator.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/internal/runners/MethodValidator.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- MethodValidator.java 24 Jan 2007 16:32:59 -0000 1.3 +++ MethodValidator.java 21 Feb 2007 14:46:51 -0000 1.4 @@ -35,8 +35,7 @@ validateTestMethods(AfterClass.class, true); } - // TODO Ugly API--one method should do both - public List<Throwable> validateAllMethods() { + public List<Throwable> validateMethodsForDefaultRunner() { validateNoArgConstructor(); validateStaticMethods(); validateInstanceMethods(); |
From: David S. <ds...@us...> - 2007-02-21 14:46:56
|
Update of /cvsroot/junit/junit/src/org/junit/tests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12633/src/org/junit/tests Modified Files: TestMethodTest.java InaccessibleBaseClassTest.java Log Message: Rename validateAllMethods to validateMethodsForDefaultRunner, which is clearer Index: TestMethodTest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/tests/TestMethodTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- TestMethodTest.java 8 Feb 2007 22:45:20 -0000 1.3 +++ TestMethodTest.java 21 Feb 2007 14:46:51 -0000 1.4 @@ -121,7 +121,7 @@ @Test public void overloaded() { MethodValidator validator= new MethodValidator(Confused.class); - List<Throwable> errors= validator.validateAllMethods(); + List<Throwable> errors= validator.validateMethodsForDefaultRunner(); assertEquals(1, errors.size()); } Index: InaccessibleBaseClassTest.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/tests/InaccessibleBaseClassTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- InaccessibleBaseClassTest.java 21 Nov 2006 18:53:34 -0000 1.1 +++ InaccessibleBaseClassTest.java 21 Feb 2007 14:46:51 -0000 1.2 @@ -9,7 +9,7 @@ @Test(expected=InitializationError.class) public void inaccessibleBaseClassIsCaughtAtValidation() throws InitializationError { MethodValidator methodValidator= new MethodValidator(Sub.class); - methodValidator.validateAllMethods(); + methodValidator.validateMethodsForDefaultRunner(); methodValidator.assertValid(); } } |