Testing - illyfrancis/scribble GitHub Wiki

Contract and Collaboration tests

  • A stub in a collaboration test must correspond to an expected result in a contract test
  • An expectation in a collaboration test must correspond to an action in a contract test

This provides a systematic way to check that your code remains in sync with the implementations of the component you are mocking

via JB Rainsberger, GOOS mailing list, "Unit-test mock/stub assumptions rots", 15 March 2012

The actual thread

Also related fro Martin Flowlers bliki

Other topics

Integration test

Integration test with Arquillian and WAS

some notes about JEE6 api dependencies and also in getting started guide and some other blog

Rest testing

Rest testing with spring RestTemplate

Rest testing with code coverage