April 2018
Intermediate to advanced
432 pages
10h 38m
English
At this point, I would like to introduce an interesting framework that may be a perfect solution for these kinds of tests. I am talking about Hoverfly, a lightweight service virtualization tool that is used to stub or simulate HTTP services. It is originally written in Go, but also gives you an expressive API for managing Hoverfly in Java. Hoverfly Java, maintained by SpectoLabs, provides classes that abstract away the binary and API calls, a DSL for creating simulations, and an integration with the JUnit test framework. This framework has a feature that I really like. You may easily add a delay to every simulated service by calling one method in your DSL definition. To enable Hoverfly for your project, you ...