Stelligent friend and author of O’Reilly’s Java Power Tools, John Ferguson Smart recently blogged about easyb, in which he states that easyb has a

very readable Domain Specific Language (DSL), that you use to write very readable (pretty much self-documenting, in fact) test cases. Rather than reasoning in terms of asserts, or even assertThats, you describe your test case in terms of simple structured user stories. Instead of assert statements, you have expressions such as shouldEqual, shouldBeLessThan and shouldHave (for collections), which have the same natural feel as Hamcrest expressions, and are just as readable.

He also provides an illustrative example of withdrawing bank funds, in which he leverages both the DSL’s should syntax as well as the ensureThrows clause (which is quite helpful in testing negative paths) in an attempt to validate proper behavior.

What’s more, if you are fortunate enough to live near or in New Zealand, you’ll want to attend the Java Emerging Technologies Conference 2008, which is going to be held this September in Auckland. The conference is free and best of all, there’s going to be a talk on easyb.