O'Reilly logo
  • thaddaeus brophy thinks this is interesting:

The primary similarities between Mockito and Spock are as follows:

  • Similar BDD approach as in Mockito (for example, the methods from BDDMockito)
  • When used properly, both can produce very clear and readable code
  • You can use Hamcrest matchers in either of the frameworks


Cover of Mockito Cookbook


Check out BDDMockito? Also, is there a BDD version of powermock?