Link Details

Link 97216 thumbnail
User 168451 avatar

By aalmiray
via weblogs.java.net
Published: Jul 23 2008 / 06:59

[...] Enter Easyb. Easyb is a BDD framework for Java. Basically, you describe your class's intended behaviour in a simple domain-specific language, using terms like "given", "when" and "then". The test cases are readable, and serve both as design documentation and as unit tests. Suppose for example you want to test your new bank account class. You need to ensure that, if you overdraw, the code throws an exception and that the account balance remains unchanged (we haven't implemented bank fees yet ;-) ).
  • 8
  • 0
  • 669
  • 149

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)