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
- link but not sure if there's a solution...
- this is the documentation linked off from the blog above. it sounds like should work...
- https://github.com/arquillian/arquillian-container-was
- more recent blog about WAS container with Arquillian here
some notes about JEE6 api dependencies and also in getting started guide and some other blog
Rest testing
- with rest-assured
Rest testing with spring RestTemplate
- http://spring.io/guides/tutorials/rest/4/
- look at the next part for security testing also