JUnit 3.8.2



11/11/2004

Summary of Changes between 3.8.1 and 3.8.2

The changes between the versions are minimal and the focus was on fixing the accumulated bug reports. The most signifanct change is replacing the much-reviled string comparison format with something easier to read and use.

Closed Bugs/Patches and Enhancment Requests

Summary of Changes between 3.8 and 3.8.1

Summary of Changes between 3.7 and 3.8

Framework

Test Runner

Documentation

Closed Bugs

Summary of Changes between 3.6 and 3.7

GUI

Framework

Text Runner

Fixed Bugs (SourceForge Bug Tracker Ids)

    [420315] No trace when fail with message...
    [419375] reload warning lags
    [418849] Classloader warning too obtrusive
    [417978] constructor stack trace, please
    [415103] Reload checkbox should be ignored in VAJ
    [414954] error reporting when invoking suite()
    [407296] Make doRun() public
    [227578] rmi callbacks fail since TestCase has no noArg constructor
    [422603] Decorated decorators bug

Summary of Changes between 3.5 and 3.6

TestRunner

Framework

Builds

Fixed Bugs (SourceForge Bug Tracker Ids)

[ #229753 ] assertEquals on NaN and Infinity does not work correctly
[ #229287 ] Class Name too long "SimpleClassPathTestCollector"
[ #229609 ] Stack Filtering missing in textui.TesRunner
[ #229870 ] Clicking on ... after tests failed gives NPE
[ #229974 ] Incorrect icon shown for first element in Swing GUI
[ #230581 ] swingui.TestTreeModel: results of decorated testcases...
[ #230971 ] Make junit.extensions.TestDecorator.getTest() public
[ #231569 ] DocBug: JUnit Test Infected: Programmers Love Writing Tests
[ #232645 ] BaseTestRunner.getTest loses exception information
[ #233094 ] TestSuite masks exceptions
[ #410967 ] No icon provided for first test
[ #230745 ] ClassPathTestCollector sometimes lists classes in duplicate

Documentation

Summary of Changes between 3.4 and 3.5

Framework

TestRunner

Tests

Documentation

Older Change Notes

  • Changes between 2.1 and 3.4
  • Changes between 1.0 and 2.1
  • Contents of the Release

    README.html  this file
    junit.jar a jar file with the JUnit framework and  tools 
    src.jar a jar file with the source code of the junit framework
    junit the source code of the JUnit samples
        samples sample test cases
        tests test cases for JUnit itself
    javadoc javadoc generated documentation
    doc documentation and articles

    Installation

    Below are the installation steps for installing JUnit:
    1. unzip the junit.zip file
    2. add junit.jar to the CLASSPATH. For example: set classpath=%classpath%;INSTALL_DIR\junit3\junit.jar
    3. test the installation by using either the batch or the graphical TestRunner tool to run the tests that come with this release. All the tests should pass OK.

    4. Notice: that the tests are not contained in the junit.jar but in the installation directory directly. Therefore make sure that the installation directory is on the class path
    Important: don't install the junit.jar into the extension directory of your JDK installation. If you do so the test class on the files system will not be found.

    Getting Started

    To get started with unit testing and JUnit read the Java Report article: Test Infected - Programmers Love Writing Tests.
    This article demonstrates the development process with JUnit in the context of multiple currency arithmetic. The corresponding source code is in junit\samples\money.

    You find additional samples in the junit.samples package:

    Documentation

    JUnit Cookbook
        A cookbook for implementing tests with JUnit.
    Test Infected - Programmers Love Writing Tests
        An article demonstrating the development process with JUnit.
    JUnit - A cooks tour
    Javadoc
        API documentation generated with javadoc.
    Frequently asked questions
        Some frequently asked questions about using JUnit.
    TestRunner Preference settings
        Describes the preferences settings that can be configured for the JUnit TestRunners.
    License
        The terms of the common public license used for JUnit.

    Extending JUnit

    Examples of possible JUnit extensions can be found in the junit.extensions package:
    SourceForge Logo