The "is" in JUnit 4 assertions
- by Space_C0wb0y
Is there any semantic difference between writing
assertThat(object1, is(equalTo(object2)));
and writing
assertThat(object1, equalTo(object2)));
? If not, I would prefer the first version, because it reads better. Are there any other considerations here?