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 ;-) ).
SaveShareSend
Tags: frameworks, groovy, java, open source
Add your comment