Book description
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 learn how to increase your test coverage and productivity, and gain confidence that your system will work as you expect.
About the Technology
Microservice applications present special testing challenges. Even simple services need to handle unpredictable loads, and distributed message-based designs pose unique security and performance concerns. These challenges increase when you throw in asynchronous communication and containers.
About the Book
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.
What's Inside
- Test automation
- Integration testing microservice systems
- Testing container-centric systems
- Service virtualization
About the Reader
Written for Java developers familiar with Java EE, EE4J, Spring, or Spring Boot.
About the Author
Alex Soto Bueno and Jason Porter are Arquillian team members. Andy Gumbrecht is an Apache TomEE developer and PMC. They all have extensive enterprise-testing experience.
Quotes
A great and invaluable gallery of test solutions, descriptions, and examples.
- Gualtiero Testa, Factor-y
Covers the full spectrum of microservice-testing techniques. An indispensable book.
- Piotr Gliniewicz, netPR.pl
Thorough explanations. Concrete examples. Real-world technology.
- Ethan Rivett, Powerley
A beacon of light for Java developers.
- Yagiz Erkan, Motive Retail
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this book
- About the authors
- About the cover
- Chapter 1. An introduction to microservices
- Chapter 2. Application under test
- Chapter 3. Unit-testing microservices
- Chapter 4. Component-testing microservices
- Chapter 5. Integration-testing microservices
- Chapter 6. Contract tests
- Chapter 7. End-to-end testing
- Chapter 8. Docker and testing
- Chapter 9. Service virtualization
- Chapter 10. Continuous delivery in microservices
- Appendix. Masking multiple containers with Arquillian Chameleon
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Testing Java Microservices
- Author(s):
- Release date: August 2018
- Publisher(s): Manning Publications
- ISBN: 9781617292897
You might also like
video
Master Java Unit Testing with Spring Boot and Mockito
Spring Boot is the most popular framework to develop RESTful services. It has awesome unit testing …
video
Building Microservices with Spring Boot, Second Edition
7+ Hours of Video Instruction The term “microservices” has gained significant traction over the last few …
video
JUnit and Mockito Unit Testing for Java Developers
Are you looking for a simple, no-nonsense guide to learning how unit testing works? This video …
video
Master Java Web Services and REST API with Spring Boot
This video course offers a comprehensive overview of developing both SOAP and RESTful web services using …