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: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and Mockito now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.