Write BDD Unit Tests with BDDMockito and AssertJ

In this post, I���ll show you how to write more readable Unit Tests using a Behavior-Driven Development style (BDD). This is a coding style that is very easy to adopt and, at the same time, brings a huge benefit: it increases your test readability (a lot). Besides, it���s a small change that may drive you to go full-BDD (i.e. writing your��test scenarios before your code).

With a practical example, you���ll see how to make this change with two very popular libraries: Mockito (and its...

 •  0 comments  •  flag
Share on Twitter
Published on May 10, 2018 07:47
No comments have been added yet.