The "is" in JUnit 4 assertions
Posted
by Space_C0wb0y
on Stack Overflow
See other posts from Stack Overflow
or by Space_C0wb0y
Published on 2010-05-02T14:40:19Z
Indexed on
2010/05/02
14:47 UTC
Read the original article
Hit count: 398
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?
© Stack Overflow or respective owner