Chapter 5. Integration-testing microservices

This chapter covers

  • Understanding integration tests in a microservices architecture context
  • Differentiating between integration and component tests
  • Writing integration tests for persistence layers and gateway layers
  • Operating with multiple deployments in Arquillian

In the preceding chapters, you read about how to write unit and component tests for a microservices-based architecture. There are also integration tests, which in the microservices world have a meaning that’s slightly different than in other architectures.

Integration tests check the interactions between different modules (or classes), usually belonging to the same subsystem, to verify that they collaborate as expected when providing ...

Get Testing Java Microservices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.