Microservices applications are made up of single-responsibility mini-applications called services that work together as a system. Microservice architectures can speed up production and are optimized for change and reusability, because you can change and add components without re-engineering the whole application. Ensuring quality software still requires rigorous testing, and microservices pose several unique testing challenges.
Exploring Testing Java Microservices is packed with tips and tricks that will help you write automatic tests to speed up the testing process for your Java-based microservices applications. Containing three chapters hand-picked from Testing Java Microservices by Alex Soto Bueno, Andy Gumbrecht, and Jason Porter, this free eBook starts by taking you through contract tests that verify your entire system. You’ll discover how Docker helps with your testing and find out how to test your system even when there are components that have yet to be built. When you’re finished, you’ll have three new techniques to add to your testing toolbox to increase your test coverage and productivity.
Testing Java Microservices teaches you to implement unit and integration tests for microservice systems running on the JVM. You’ll work with a microservice environment built using Java EE, WildFly Swarm, and Docker. You’ll advance from writing simple unit tests for individual services to more-advanced practices like chaos or integration tests. As you move towards a continuous-delivery pipeline, you’ll also master live system testing using technologies like the Arquillian, Wiremock, and Mockito frameworks, along with techniques like contract testing and over-the-wire service virtualization. Master these microservice-specific practices and tools and you’ll greatly increase your test coverage and productivity, and gain confidence that your system will work as you expect.