JUnit 4.4 is now released

JUnit 4.4 includes several major new features designed to even better capture developer intent:

  • New assertion syntax

assertThat(string, containsString("abc"));

  • Explicit support for environment assumptions:

assumeThat(File.separatorChar, is('/'));

  • Theories (globally true statements):

    @Theory public void filenameIncludesUsername(String username) {
    assumeThat(username, not(containsString("/")));
    assertThat(new User(username).configFileName(), containsString(username));

There are several minor new features, and important bug fixes over 4.3.1. For more information, please see the release notes at

Posted by David Saff 2007-07-18

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks