Dependencies over external services are definitely an issue for an integration test’s repeatability. We need to assure that our app can communicate effectively with its dependencies and that we are covering the most use cases with our set of tests.
When a test’s actions change the state of the ExS we are consuming, we aren’t able to predict the next result and therefore automated testing becomes a real pain.
But what if we could create a test environment mocking those annoying web services? And, what if we get to control the state and behaviour of those mocks for each test case?
This talk covers the following: the value of integration testing, test strategies and patterns including consumer driven stubs and contract testing, and some useful tools for mocking external services including Stubby4J.