Friday, April 28, 2006

Summary of Changes between JUnit 3.8.1 and 3.8.2

JUnit 3.8.2 was recently released EXTREMELY discreetly, as JUnit 4 (now 4.1) was also released. While there is plenty of documentation on the new features in JUnit 4, I found little to nothing on what changes had been made between JUnit 3.8.1 and 3.8.2. At least nothing on the web.
Check out an overview of the changes first here:
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3278
For more detailed information, there is a changelog included in the binary distribution (and probably the source, but I haven't checked it out). However, for the benefit of having it on the web, I 've included the changelog here:
=========================

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.
  • ComparisonFailure shows context.
    • assertEquals("Mary had a little lamb", "Mary had the little lamb") shows: expected: but was:
      Longer prefixes and suffixes are truncated to a fixed size (currently 20):
    • expected:<...st of the emergency [broadcasting] system> but was:<...st of the emergency [locating] system>
  • Running single tests. junit.ui.TestRunner can be invoked with "-m ClassName.testName" to run a single test.
  • TestSuite(Class[]). There is a new TestSuite constructor that takes an array of classes as a parameter and returns a suite of suites, each of which is constructed from a single class.

Closed Bugs/Patches and Enhancment Requests

==========================
Hope that helps some of you out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home