Stubbing External Service Interactions using Ratpack

Most modern web applications call an external service via http. Applications built on the increasingly popular micro service architecture use many external services. In a unit test it’s easy to mock the http client. In integration or functional testing it is both more difficult to inject a mock, and less... [Read More]

Testing Cassandra using Spock

We often use asynchronous execution of writes to cassandra tables. These methods return as soon as the call to cassandra is made which makes testing them a pain. I was resorting to adding a half second sleep after the method call before verifying the result in an integration test, but... [Read More]