RSS start | index | login or register | find | edit
Online for 6941 days.




sticky snips:



no backlinks


4 active users:

unknown (4)

Recent edits:

2007-06-14-java stick
by unknown, a long time ago

Flexible JUnit assertions with assertThat()
From
assertTrue(something.indexOf("color") > -1 || something.indexOf("colour") > -1,
"Expected a string containing 'color' or 'colour'");

To
assertThat(something, or(contains("color"), contains("colour")));


no comments yet!

Please log in (you may want to register first) to post comments!
No attachments for this snip.
Upload / manage attachments!
  c'est un vanilla site