O'Reilly logo
  • daniele salemi thinks this is interesting:

The majority of the existing Java mocking libraries are constructed in such a way that they require a strictly predefined approach to testing, which consists of three steps:

  • record some behavior (expect)
  • replay the scenario with the mock (run)
  • check if the required actions actually took place (verify)

Mockito altered this approach substantially by minimizing the required steps, and provided a more intuitive approach – you can verify what you desired after the execution takes place. What makes Mockito special is the fact that creating a mock does not explicitly mean that one would li...

From

Cover of Instant Mockito

Note

!!