Kent Beck and David Saff have released JUnit 4.3. Besides bug fixes, the major changes are:
assertEquals
to compare array contents is now deprecated. In the future, assertEquals
will revert to its pre-4.0 meaning of comparing objects based on Java's Object.equals semantics.@Ignore
annotation can now be applied to classes, to ignore the entire class, instead of individual methods.JUnit 4 takes advantage of Java 5 features like annotations, varargs, and generics to simplify unit testing still further. If you're committed to Java 5, then JUnit 4 is big leap forward. Unfortunately while JUnit 4 is backward and forwards compatible with JUnit 3 test suites and test runners, it's completely incompatible with Java 1.4 and earlier so I'm afraid most of us will be sticking with JUnit 3 for some years to come.