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-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/theories/methods In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/theories/methods Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/theories/methods added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/theories/javamodel In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/theories/javamodel Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/theories/javamodel added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/theories/matchers In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/theories/matchers Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/theories/matchers added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/results In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/results Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/results added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/theories/javamodel/api In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/theories/javamodel/api Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/theories/javamodel/api added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/lib In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/lib Log Message: Directory /cvsroot/junit/junit/lib added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/imposterization In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/imposterization Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/imposterization added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/theories/matchers/api In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/theories/matchers/api Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/theories/matchers/api added to the repository |
From: David S. <ds...@us...> - 2007-07-02 18:09:38
|
Update of /cvsroot/junit/junit/src/org/junit/experimental/theories In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv27695/src/org/junit/experimental/theories Log Message: Directory /cvsroot/junit/junit/src/org/junit/experimental/theories added to the repository |
From: Jonathan A. <jon...@gm...> - 2007-06-26 12:39:54
|
Hi. I have been using JUnit for a project using Hibernate and Spring from Eclipse. Hibernate and Spring is pretty memory demanding things and I have repeatadly hit the OutOfMemoryException and increased the memory parameters to the JVM. Now however I am afraid I have reached the limit of my memory because suddenly I get more or less a frozen computer and it seems to just be swapping. This happens before the JUnit plugin for Eclipse has reported even one test. Thus it would seem to me as if JUnit first setups for all tests (grabbing all menory available) and then performs the tests. Is this the case? Wouldn't it be better to take one test at a time and clear memory usage in between? No matter if this is the case do anyone have an idea of a solution to my problem which isn't of the type "buy more memory" (Because I think that would just push my problem forward a bit...) // Jonathan Alvarsson |
From: Tom M. <ts....@gm...> - 2007-05-27 19:54:38
|
Hi! I recently had the pleasure of migrating a lot of the unit tests at work from JMock 1.x to EasyMock 2.x. The only glitch we had was the loss of assertThat, which is beloved by our Tech Leads and architects alike, predominantly because of its excellent error reporting. We initially created a wrapper for JMock's MockSupport classes but thats just ugly, so I patched JUnit 4.4 to include an AssertThat class to complement Assert. It is essentially a comprehensive wrapper of Google's Hamcrest library that allows sensible assertions on collections. We kinda like it and would like to offer it back to the community. Is it something that you like to consider integrating with JUnit? If so how can I submit? Many Thanks Tom |
From: Suniti R. <sun...@ya...> - 2007-05-26 01:48:59
|
Hello I have a test class defined which has a number of test cases. I would like to choose only certain test cases from this test suite dynamically. Can somebody please help me???? I tried to pass an instance of AccountTest constructor but I have trouble doing that. See below. [Code] < code of a generic test suite> public class AccountTest extends TestCase{ public AccountTest(String name) { super(name); } public void test1() { } public void test2() { } } < Trying to add the tests dynamically> I need to find AccountTest dynamically and then pick test1 and add it to another testsuite. This is my scenario. Can somebody please tell me how to do this?? TestSuiteClass ts = (TestSuiteClass)list.get(i); Class tc = ClassLoaderUtils.getClass("com.fw.testcases.smoke." + ts.testSuiteName.getContent()); // am sucessful in finding AccountTest. ... Constructor constructor = tc.getConstructor(new Class[]{String.class}); // successful in invoking the constructor. .... // how do I add the test to a new test suite from this constructor instance???? Thanks KVn ____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ |
From: David S. <sa...@mi...> - 2007-05-25 17:26:26
|
Assaf, It's several months past due, but if you face this situation again, you can also use: suite.addTest(new com.nextnine.ServiceCenter.SCActivities.TestSCActivities(param1, param2)) If you get a chance to try it out, let me know. David Saff On 3/8/07, Assaf Vizner <av...@ne...> wrote: > > David hi > > Thanks for the response. > > Indeed I'm using JUnit 3.8.2, > > Passing the instance into the test constructor is a little bit problematic > since the TestCase signature doesn't allow getting any parameters, and the > suite that triggers the tests can get either > > Class - suite.addTestSuite( > com.nextnine.ServiceCenter.SCActivities.TestSCActivities.class); > > Or Test - suite.addTest( > com.nextnine.ServiceCenter.SCActivities.TestSCActivities.suite);** > > I think I'll try to define the main Application class as singleton, in > order to create the instance once and all the tests will access it through > get method. > > > > *Asaf Vizner* > *NextNine.LTD* > *4 Ha-Nechoshet* > *Tel-Aviv** 69710 Israel* > *E-mail:** **av...@ne...*<https://mail.google.com/mail?view=cm&tf=0&to=av...@ne...> > *Tel: +972(3)7673012* > *Mobile**: +972(528)466746* > *Fax: +972(3)6497810* > ------------------------------ > > *From:* dav...@gm...<https://mail.google.com/mail?view=cm&tf=0&to=dav...@gm...>[mailto: > dav...@gm...<https://mail.google.com/mail?view=cm&tf=0&to=dav...@gm...>] > *On Behalf Of *David Saff > *Sent:* Tuesday, 06 March 2007 04:53 > *To:* Assaf Vizner > *Subject:* Re: [Junit-devel] Passing object instance from a suite to a > TestCase > > > > Assaf, > > It sounds like you're using JUnit 3. If so, your dynamic test suite could > simply pass the instance into the constructors of the individual tests. But > it's possible I'm missing the complexity of the situation. Could you share > the source of your dynamic suite so far? Thanks, > > David Saff > > On 3/6/07, *Assaf Vizner* <av...@ne...<https://mail.google.com/mail?view=cm&tf=0&to=av...@ne...>> > wrote: > > Hi > > I' m using Junit jointly with Watij (web application testing tool ), and I > have created my own dynamic suite in order to allow my application to run > different number of tests which provided as parameters. > > My problem is that I want my application to create the Watij IE (internet > explorer) instance and to initialize it , and the Test Suite to send an > instance of this object to the TestCase s. > > If anyone have any idea please replay to me > > Thanks > > *Asaf Vizner* > > *NextNine.LTD* > > *4 Ha-Nechoshet* > > *Tel-Aviv** 69710 Israel* > > *E-mail:** * *av...@ne...*<https://mail.google.com/mail?view=cm&tf=0&to=av...@ne...> > > *Tel: +972(3)7673012 * > > *Mobile: +972(528)466746 * > > *Fax: +972(3)6497810* > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Junit-devel mailing list > Jun...@li...<https://mail.google.com/mail?view=cm&tf=0&to=Jun...@li...> > https://lists.sourceforge.net/lists/listinfo/junit-devel > > > |
From: David S. <ds...@us...> - 2007-05-08 14:45:22
|
Update of /cvsroot/junit/junit/build In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv9214/build Added Files: upload_docs.sh Log Message: Added script for uploading docs --- NEW FILE: upload_docs.sh --- scp -r ../doc/* ds...@sh...:/home/groups/j/ju/junit/htdocs/doc |
From: David S. <ds...@us...> - 2007-05-08 14:45:22
|
Update of /cvsroot/junit/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv9214 Modified Files: build.xml Log Message: Added script for uploading docs Index: build.xml =================================================================== RCS file: /cvsroot/junit/junit/build.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- build.xml 26 Apr 2007 20:21:21 -0000 1.27 +++ build.xml 8 May 2007 14:45:18 -0000 1.28 @@ -124,5 +124,6 @@ <fileset dir="${dist}" includes="*.jar" /> <fileset file="${zipfile}" /> </ftp> + <echo message="To upload docs, use build/upload_docs.sh" /> </target> </project> |
From: David S. <ds...@us...> - 2007-05-08 13:52:00
|
Update of /cvsroot/junit/junit/doc/cookbook In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22551/doc/cookbook Modified Files: cookbook.htm Log Message: Updated the section heading Index: cookbook.htm =================================================================== RCS file: /cvsroot/junit/junit/doc/cookbook/cookbook.htm,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- cookbook.htm 30 May 2006 20:39:16 -0000 1.8 +++ cookbook.htm 8 May 2007 13:51:57 -0000 1.9 @@ -96,8 +96,7 @@ }</tt></pre> Once you have the Fixture in place, you can write as many Test Cases as you'd like. Add as many test methods (annotated with @Test) as you'd like. -<h2> -TestRunner</h2> +<h2>Running Tests</h2> How do you run your tests and collect their results? <p>Once you have tests, you'll want to run them. JUnit provides tools to define the suite to be run and to display its results. To run tests and see the |
From: Jeffrey C. <jc...@ac...> - 2007-05-07 16:18:38
|
Folks, =20 I have a large body of test cases that ideally I'd like to run in multiple threads. In JUnit 3.8 I see javadoc for a multithreaded test suite junit.extensions.ActiveTestSuite. I don't see anything analogous in JUnit 4. It seems that in JUnit 4 this really needs to be done as a Runner. =20 I got rough modified versions org.junit.internal.runners.CompositeRunner and org.junit.runners.Parameterized working in multithreaded mode, using a pool of threads to run each test returned by the @Parameters method in a thread. =20 I see a possible thread safety problem in org.junit.runner.notification.RunNotifier. If a listener throws an exception, the notifier tries to remove it from the listener collection. I am not sure but I think that this might cause problems when multithreaded. (I've never had a listener throw, however.) =20 I am planning to look at multithreaded versions for some of the other runners. If anyone else has ideas or is already doing this, please let me know? =20 =20 Thanks, Jeff Clary =20 |
From: Andrew Z. <zha...@gm...> - 2007-05-03 22:19:13
|
Hi folks, Is here the right place to discuss about the development of JUnit? I have some ideas about JUnit features, and I'd like to write some codes for JUnit. Thanks! -- Best regards, Andrew Zhang |
From: David S. <ds...@us...> - 2007-04-26 20:21:28
|
Update of /cvsroot/junit/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12631 Modified Files: build.xml README.html Log Message: Merge build script with 4.3.1 Index: build.xml =================================================================== RCS file: /cvsroot/junit/junit/build.xml,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- build.xml 22 Mar 2007 17:47:52 -0000 1.26 +++ build.xml 26 Apr 2007 20:21:21 -0000 1.27 @@ -8,13 +8,14 @@ <property name="dist" value="junit${version}" /> <property name="versionfile" value="${src}/junit/runner/Version.java" /> <property name="zipfile" value="${dist}.zip" /> - <property name="testfiles" value="junit/samples/**, junit/tests/**" /> + <property name="testfiles" value="junit/samples/**, junit/tests/**, org/junit/samples/**, org/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="binjar" value="junit-${version}.jar" /> + <property name="srcjar" value="junit-${version}-src.jar" /> <property name="javadocdir" value="${dist}/javadoc" /> <property name="javadoczip" value="${dist}-javadoc.zip" /> <property name="javadocpackages" value="org.junit, org.junit.runner, org.junit.runner.description, org.junit.runner.manipulation, org.junit.runner.notification, org.junit.runners" /> - + <target name="init"> <tstamp/> </target> @@ -29,6 +30,16 @@ /> </target> + <target name="clean"> + <delete dir="${dist}" quiet="true" /> + <delete file="${zipfile}" quiet="true"/> + <delete> + <fileset dir="${basedir}" includes="**/*.class" /> + </delete> + + <delete file="${javadoczip}" /> + </target> + <target name="build" depends="versiontag"> <mkdir dir="${bin}"/> <javac @@ -39,57 +50,26 @@ <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="populate-dist" depends="clean, build"> - <delete dir="${dist}" /> + + <target name="jars"> <mkdir dir="${dist}" /> <jar - jarfile="${dist}/junit-${version}-src.jar" + jarfile="${dist}/${srcjar}" basedir="${src}" excludes="${unjarred}, **/*.class" /> <jar - jarfile="${dist}/${jarfile}" + jarfile="${dist}/${binjar}" 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="javadoc" /> - - <copy todir="${dist}/doc"> - <fileset dir="doc"/> - </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> - <pathelement location="${dist}" /> - <pathelement location="${dist}/${jarfile}" /> - </classpath> - </java> </target> - <target name="javadoczip"> - <delete file="${javadoczip}" /> - <antcall target="javadoc" /> - <zip basedir="${javadocdir}" file="${javadoczip}" /> + <target name="samples-and-tests"> + <copy todir="${dist}"> + <fileset dir="${bin}" includes="${testfiles}" /> + <fileset dir="${src}" includes="${testfiles}" /> + </copy> </target> <target name="javadoc"> @@ -105,18 +85,34 @@ /> </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="populate-dist" + depends="clean, build, jars, samples-and-tests, javadoc" + > + <copy todir="${dist}/doc"> + <fileset dir="doc"/> + </copy> + <copy file="README.html" tofile="${dist}/README.html" /> + <copy file="cpl-v10.html" tofile="${dist}/cpl-v10.html" /> </target> - <target name="clean"> - <delete dir="${dist}" quiet="true" /> - <delete file="${zipfile}" quiet="true"/> - <delete> - <fileset dir="${basedir}" includes="**/*.class" /> - </delete> + <target name="dist" depends="populate-dist"> + <java classname="org.junit.runner.JUnitCore" fork="yes" failonerror="true"> + <arg value="org.junit.tests.AllTests"/> + <classpath> + <pathelement location="${dist}" /> + <pathelement location="${dist}/${binjar}" /> + </classpath> + </java> + </target> - <delete file="${javadoczip}" /> + <target name="zip" depends="dist"> + <zip zipfile="${zipfile}" basedir="." includes="${dist}/**" /> </target> <target name="upload.to.sourceforge" depends="zip"> Index: README.html =================================================================== RCS file: /cvsroot/junit/junit/README.html,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- README.html 7 Mar 2007 19:50:50 -0000 1.19 +++ README.html 26 Apr 2007 20:21:21 -0000 1.20 @@ -4,13 +4,13 @@ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="Author" content="Erich Gamma, Kent Beck, and David Saff"> - <title>JUnit 4.3</title> + <title>JUnit 4.3.1</title> </head> <body> <h1> <b><font color="#00CC00">J</font><font color="#FF0000">U</font><font color="#000000">nit -4.2</b></h1> +4.3.1</b></h1> <br>Brought to you by <a href="http://www.threeriversinstitute.org">Kent Beck</a>, Erich Gamma, and <a href="http://david.saff.net">David Saff</a>. @@ -19,7 +19,7 @@ <br>(see also <a href="http://www.junit.org">JUnit.org</a>) <hr WIDTH="100%"> -<br>7 March 2007 +<br>27 March 2007 <p>JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. <ul> @@ -42,6 +42,21 @@ </ul> <h2> +<a NAME="Summary of"></a>Summary of Changes in version 4.3.1</h2> +<p> +<ul> +<li>Bug fix: 4.3 introduced a +<a href="https://sourceforge.net/tracker/?func=detail&atid=115278&aid=1684562&group_id=15278">bug</a> +that caused a NullPointerException +when comparing a null reference to a non-null reference in <tt>assertEquals</tt>. +This has been fixed. +<li>Bug fix: The binary jar for 4.3 <a href="https://sourceforge.net/tracker/?func=detail&atid=115278&aid=1686931&group_id=15278">accidentally</a> included the tests and sample code, +which are now removed for a smaller download, but, as always, available from the +full zip. +</ul> +</p> + +<h2> <a NAME="Summary of"></a>Summary of Changes with version 4.3</h2> <p> <ul> @@ -115,13 +130,13 @@ </tr> <tr> -<td><tt>junit-4.3.jar</tt></td> +<td><tt>junit-4.3.1.jar</tt></td> <td>a jar file with the JUnit framework</td> </tr> <tr> -<td><tt>junit-4.3-src.jar</tt></td> +<td><tt>junit-4.3.1-src.jar</tt></td> <td>a jar file with the source code of the JUnit framework</td> </tr> @@ -162,20 +177,20 @@ Below are the installation steps for installing JUnit: <ol> <li> -unzip the junit4.3.zip file</li> +unzip the junit4.3.1.zip file</li> <li> -add<i> </i><b>junit-4.3.jar</b> to the CLASSPATH. For example: +add<i> </i><b>junit-4.3.1.jar</b> to the CLASSPATH. For example: <tt> set classpath=%classpath%;INSTALL_DIR\junit-4.2.jar;INSTALL_DIR</tt></li> <li> test the installation by running <tt>java org.junit.runner.JUnitCore org.junit.tests.AllTests.</tt></li> <br><b><font color="#FF0000">Notice</font></b>: that the tests are not -contained in the junit-4.3.jar but in the installation directory directly. +contained in the junit-4.3.1.jar but in the installation directory directly. Therefore make sure that the installation directory is on the class path </ol> -<b><font color="#FF0000">Important</font></b>: don't install junit-4.3.jar +<b><font color="#FF0000">Important</font></b>: don't install junit-4.3.1.jar into the extension directory of your JDK installation. If you do so the test class on the files system will not be found. <h2> |
From: David S. <ds...@us...> - 2007-04-26 20:21:27
|
Update of /cvsroot/junit/junit/build/experimental-use-of-antunit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv12631/build/experimental-use-of-antunit Modified Files: junit.ant junit-remote.ant junit-slow.ant junit.properties macros.ant Log Message: Merge build script with 4.3.1 Index: junit.ant =================================================================== RCS file: /cvsroot/junit/junit/build/experimental-use-of-antunit/junit.ant,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- junit.ant 20 Mar 2007 14:12:23 -0000 1.2 +++ junit.ant 26 Apr 2007 20:21:21 -0000 1.3 @@ -1,6 +1,11 @@ <project xmlns:au="antlib:org.apache.ant.antunit"> - <import file="macros.ant"/> + <import file="macros.ant" /> + <property name="binjarfile" value="${antdistdir}/${test.jarfile}" /> + <property name="srcjarfile" value="${antdistdir}/${test.srcjarfile}" /> + + <!-- MACROS --> + <macrodef name="sizeOfDir"> <attribute name="property.name" /> <sequential> @@ -26,6 +31,14 @@ </sequential> </macrodef> + <macrodef name="unzip.exttestjavadoczip"> + <sequential> + <unzip dest="${tempdir}" src="${exttestjavadoczip}" /> + </sequential> + </macrodef> + + <!-- TEST FIXTURE TESTS --> + <target name="testTearDown"> <mkdir dir="${antdistdir}" /> <mkdir dir="${tempdir}" /> @@ -38,23 +51,18 @@ <au:assertFileDoesntExist file="${exttestjavadoczip}" /> </target> - <target name="testCharacterize_JavadocGeneratesJavadoc"> - <junitbuild target="javadoc" /> - <au:assertFileExists file="${antdistdir}/ant-unit-java-docs" /> - </target> - - <target name="testJavaDocZip"> - <junitbuild target="javadoczip" /> - <au:assertFileExists file="${exttestjavadoczip}" /> - - <antcall target="unzip.exttestjavadoczip" /> - <au:assertFileExists file="${tempdir}/org" /> + <target name="testCharacterize_DirSizeChanges"> + <dirSizeChanges property.name="changed"> + <mkdir dir="${tempdir}" /> + <echo message="h" file="${tempdir}/whatever.txt" /> + </dirSizeChanges> + <au:assertPropertySet name="changed" /> </target> - + <target name="testUnzipOnlyCreatesDirectoryCleanedByTeardown"> <dirSizeChanges property.name="changed"> <junitbuild target="javadoczip" /> - <antcall target="unzip.exttestjavadoczip" /> + <unzip.exttestjavadoczip /> <antcall target="tearDown" /> </dirSizeChanges> <au:assertFalse> @@ -62,16 +70,38 @@ </au:assertFalse> </target> - <target name="testCharacterize_DirSizeChanges"> - <dirSizeChanges property.name="changed"> - <mkdir dir="${tempdir}" /> - <echo message="h" file="${tempdir}/whatever.txt" /> - </dirSizeChanges> - <au:assertPropertySet name="changed" /> + <!-- CHARACTERIZATION TESTS DURING REFACTORING --> + + <target name="testCharacterize_JavadocGeneratesJavadoc"> + <junitbuild target="javadoc" /> + <au:assertFileExists file="${antdistdir}/ant-unit-java-docs" /> </target> - <target name="unzip.exttestjavadoczip"> - <unzip dest="${tempdir}" src="${exttestjavadoczip}" /> + <target name="testCharacterize_PopulateGeneratesJUnitJar"> + <junitbuild target="populate-dist" /> + <au:assertFileExists file="${binjarfile}" /> + </target> + + <target name="testCharacterize_PopulateGeneratesSrcJar"> + <junitbuild target="populate-dist" /> + <au:assertFileExists file="${srcjarfile}" /> + </target> + + <target name="testCharacterize_PopulateCopiesSamplesAndTests"> + <junitbuild target="samples-and-tests" /> + <au:assertFileExists file="${antdistdir}/junit/samples" /> + <au:assertFileExists file="${antdistdir}/junit/tests" /> + <au:assertFileExists file="${antdistdir}/org/junit/samples" /> + <au:assertFileExists file="${antdistdir}/org/junit/tests" /> + </target> + + <!-- DRIVING TESTS --> + + <target name="testJavaDocZip"> + <junitbuild target="javadoczip" /> + <au:assertFileExists file="${exttestjavadoczip}" /> + <unzip.exttestjavadoczip /> + <au:assertFileExists file="${tempdir}/org" /> </target> <target name="testJavaDocZipDeletedOnClean"> @@ -79,4 +109,14 @@ <junitbuild target="clean" /> <au:assertFileDoesntExist file="${exttestjavadoczip}" /> </target> + + <!-- [Junit-trackers] [ junit-Bugs-1686931 ] JUnit 4.3 contains samples and tests in junit-4.3[-src].jar --> + <target name="testJarsDoesntIncludeSamplesInJUnitJar"> + <junitbuild target="jars" /> + <au:assertFalse> + <available classname="org.junit.tests.AllTests" + classpath="${binjarfile}" + /> + </au:assertFalse> + </target> </project> \ No newline at end of file Index: junit-remote.ant =================================================================== RCS file: /cvsroot/junit/junit/build/experimental-use-of-antunit/junit-remote.ant,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- junit-remote.ant 20 Mar 2007 14:12:23 -0000 1.1 +++ junit-remote.ant 26 Apr 2007 20:21:21 -0000 1.2 @@ -1,14 +1,10 @@ <project xmlns:au="antlib:org.apache.ant.antunit"> - <import file="macros.ant"/> - + <import file="macros.ant" /> + <target name="testCharacterize_Upload"> - <!-- TODO: DUP --> - <ant antfile="build.xml" target="clean" dir="${junitdir}"> - <property name="dist" value="${antdist}" /> - </ant> - <!-- Should work --> - <ant antfile="build.xml" target="upload.to.sourceforge" dir="${junitdir}"> - <property name="dist" value="${antdist}" /> - </ant> + <junitbuild target="clean" /> + + <!-- Should work without error --> + <junitbuild target="upload.to.sourceforge" /> </target> </project> \ No newline at end of file Index: junit-slow.ant =================================================================== RCS file: /cvsroot/junit/junit/build/experimental-use-of-antunit/junit-slow.ant,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- junit-slow.ant 20 Mar 2007 14:12:23 -0000 1.2 +++ junit-slow.ant 26 Apr 2007 20:21:21 -0000 1.3 @@ -1,12 +1,8 @@ <project xmlns:au="antlib:org.apache.ant.antunit"> <import file="macros.ant"/> - <target name="testTearDown"> - <mkdir dir="${antdistdir}"/> - <antcall target="tearDown" /> - <au:assertFileDoesntExist file="${antdistdir}" /> - </target> - + <!-- CHARACTERIZATION TESTS --> + <target name="testCharacterize_DistGeneratesJavadoc"> <ant antfile="build.xml" target="dist" dir="${junitdir}"> <property name="dist" value="${antdist}" /> @@ -23,4 +19,28 @@ <au:assertLogContains text="Time:" /> </target> + + <target name="testCharacterize_PopulateCopiesSamplesAndTests"> + <junitbuild target="populate-dist" /> + <au:assertFileExists file="${antdistdir}/junit/samples" /> + <au:assertFileExists file="${antdistdir}/junit/tests" /> + <au:assertFileExists file="${antdistdir}/org/junit/samples" /> + <au:assertFileExists file="${antdistdir}/org/junit/tests" /> + </target> + + <!-- DRIVING TESTS --> + + <target name="testPopulateDoesntRecursivelyInclude"> + <junitbuild target="populate-dist" /> + <au:assertFileDoesntExist file="${antdistdir}/${antdist}" /> + </target> + + <target name="testPopulateDoesntIncludeSamplesInJUnitJar"> + <junitbuild target="populate-dist" /> + <au:assertFalse> + <available classname="org.junit.tests.AllTests" + classpath="${binjarfile}" + /> + </au:assertFalse> + </target> </project> \ No newline at end of file Index: junit.properties =================================================================== RCS file: /cvsroot/junit/junit/build/experimental-use-of-antunit/junit.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- junit.properties 10 Mar 2007 07:10:32 -0000 1.1 +++ junit.properties 26 Apr 2007 20:21:21 -0000 1.2 @@ -3,4 +3,6 @@ antdistdir=${junitdir}/${antdist} testjavadoczip=new-england-javadoc.zip exttestjavadoczip=${junitdir}/${testjavadoczip} -tempdir=tempdir \ No newline at end of file +tempdir=tempdir +test.jarfile=junit-test.version.jar +test.srcjarfile=junit-test.version-src.jar \ No newline at end of file Index: macros.ant =================================================================== RCS file: /cvsroot/junit/junit/build/experimental-use-of-antunit/macros.ant,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- macros.ant 20 Mar 2007 14:12:23 -0000 1.1 +++ macros.ant 26 Apr 2007 20:21:21 -0000 1.2 @@ -22,6 +22,8 @@ /> <property name="javadoczip" value="${testjavadoczip}" /> <property name="javadocpackages" value="org.junit" /> + <property name="binjar" value="${test.jarfile}" /> + <property name="srcjar" value="${test.srcjarfile}" /> </ant> </sequential> </macrodef> |
From: David S. <ds...@us...> - 2007-04-26 19:58:42
|
Update of /cvsroot/junit/junit/src/junit/runner In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv2711/src/junit/runner Modified Files: Tag: Version431 Version.java Log Message: Updated Version Index: Version.java =================================================================== RCS file: /cvsroot/junit/junit/src/junit/runner/Version.java,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -d -r1.2 -r1.2.2.1 --- Version.java 10 Mar 2007 07:10:32 -0000 1.2 +++ Version.java 26 Apr 2007 19:58:27 -0000 1.2.2.1 @@ -9,7 +9,7 @@ } public static String id() { - return "4.3"; + return "4.3.1"; } public static void main(String[] args) { |
From: David S. <ds...@us...> - 2007-04-26 19:56:48
|
Update of /cvsroot/junit/junit/src/org/junit/runner In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1805/src/org/junit/runner Modified Files: Description.java Log Message: [Junit-trackers] [ junit-Bugs-1684562 ] assertEquals throws NPE while comparing null elements Descriptions now have Annotations Index: Description.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/runner/Description.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Description.java 21 Feb 2007 14:44:00 -0000 1.2 +++ Description.java 26 Apr 2007 19:56:31 -0000 1.3 @@ -1,6 +1,9 @@ package org.junit.runner; +import java.lang.annotation.Annotation; import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; /** * <p>A <code>Description</code> describes a test which is to be run or has been run. <code>Descriptions</code> @@ -25,10 +28,11 @@ * Create a <code>Description</code> named <code>name</code>. * Generally, you will add children to this <code>Description</code>. * @param name the name of the <code>Description</code> + * @param annotations * @return a <code>Description</code> named <code>name</code> */ - public static Description createSuiteDescription(String name) { - return new Description(name); + public static Description createSuiteDescription(String name, Annotation... annotations) { + return new Description(name, annotations); } /** @@ -36,10 +40,11 @@ * Generally, this will be a leaf <code>Description</code>. * @param clazz the class of the test * @param name the name of the test (a method name for test annotated with {@link org.junit.Test}) + * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ - public static Description createTestDescription(Class<?> clazz, String name) { - return new Description(String.format("%s(%s)", name, clazz.getName())); + public static Description createTestDescription(Class<?> clazz, String name, Annotation... annotations) { + return new Description(String.format("%s(%s)", name, clazz.getName()), annotations); } /** @@ -48,7 +53,7 @@ * @return a <code>Description</code> of <code>testClass</code> */ public static Description createSuiteDescription(Class<?> testClass) { - return new Description(testClass.getName()); + return new Description(testClass.getName(), testClass.getAnnotations()); } public static final Description EMPTY= new Description("No Tests"); @@ -57,12 +62,11 @@ private final ArrayList<Description> fChildren= new ArrayList<Description>(); private final String fDisplayName; - /** - * @deprecated (since 4.3) use the static factories (createTestDescription, createSuiteDescription) instead - */ - @Deprecated - protected Description(final String displayName) { + private final Annotation[] fAnnotations; + + private Description(final String displayName, Annotation... annotations) { fDisplayName= displayName; + fAnnotations= annotations; } /** @@ -131,4 +135,23 @@ public String toString() { return getDisplayName(); } + + public boolean isEmpty() { + return equals(EMPTY); + } + + public Description childlessCopy() { + return new Description(fDisplayName, fAnnotations); + } + + public <T extends Annotation> T getAnnotation(Class<T> annotationType) { + for (Annotation each : fAnnotations) + if (each.annotationType().equals(annotationType)) + return annotationType.cast(each); + return null; + } + + public Collection<Annotation> getAnnotations() { + return Arrays.asList(fAnnotations); + } } \ No newline at end of file |
From: David S. <ds...@us...> - 2007-04-26 19:56:48
|
Update of /cvsroot/junit/junit/src/org/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1805/src/org/junit Modified Files: Assert.java Log Message: [Junit-trackers] [ junit-Bugs-1684562 ] assertEquals throws NPE while comparing null elements Descriptions now have Annotations Index: Assert.java =================================================================== RCS file: /cvsroot/junit/junit/src/org/junit/Assert.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Assert.java 8 Feb 2007 22:45:21 -0000 1.5 +++ Assert.java 26 Apr 2007 19:56:30 -0000 1.6 @@ -455,8 +455,8 @@ String formatted= ""; if (message != null && ! message.equals("")) formatted= message + " "; - String expectedString= expected.toString(); - String actualString= actual.toString(); + String expectedString= String.valueOf(expected); + String actualString= String.valueOf(actual); if (expectedString.equals(actualString)) return formatted + "expected: " + expected.getClass().getName() + "<" + expectedString + "> but was: " + actual.getClass().getName() + "<" + actualString + ">"; else |
From: David S. <ds...@us...> - 2007-04-26 19:56:48
|
Update of /cvsroot/junit/junit/src/junit/runner In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv1805/src/junit/runner Modified Files: Version.java Log Message: [Junit-trackers] [ junit-Bugs-1684562 ] assertEquals throws NPE while comparing null elements Descriptions now have Annotations Index: Version.java =================================================================== RCS file: /cvsroot/junit/junit/src/junit/runner/Version.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Version.java 10 Mar 2007 07:10:32 -0000 1.2 +++ Version.java 26 Apr 2007 19:56:31 -0000 1.3 @@ -9,7 +9,7 @@ } public static String id() { - return "4.3"; + return "4.4-snapshot-20070322-1027"; } public static void main(String[] args) { |