JUnit 4.4 added a new assertion mechanism with the method assertThat(). Have a look and consider using it in place of assertEquals().
assertThat(result, is(42));assertThat(output, containsString("foo"));JUnit 4.4 added a new assertion mechanism with the method assertThat(). Have a look and consider using it in place of assertEquals().
assertThat(result, is(42));assertThat(output, containsString("foo"));