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




sticky snips:

2004-02-23-bug
2004-08-02-misc


no backlinks


1 active user:

unknown (1)

Recent edits:

Java
tsr
2008-01-22
Swing Explorer
SAP XI
UISpec4J
JIDE-OSS
bean-properties
DocBook
Visual Library
2007-06-14 stick
by tsr, 1805 days 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