concept external service in category java

appears as: external services, An external service, external service, n external service
Testing Java Microservices: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and Mockito

This is an excerpt from Manning's book Testing Java Microservices: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and Mockito.

Tests must be designed to cover comprehensively any and all interaction with external services. It’s important to get this right, because network interaction will always present its own set of challenges. We’ll cover this extensively in chapter 5.

Because you’re testing whether communication between a subsystem belonging to a microservice and the external service is possible, the ideal scenario would be to not use any test doubles for external components.

  • Tests for gateway classes may need to communicate with external services.