Testing Java Microservices: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and Mockito by Andy Gumbrecht Alex Soto Bueno & Jason Porter

Testing Java Microservices: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and Mockito by Andy Gumbrecht Alex Soto Bueno & Jason Porter

Author:Andy Gumbrecht Alex Soto Bueno & Jason Porter [Andy Gumbrecht Alex Soto Bueno and Jason Porter]
Language: eng
Format: epub
Publisher: Manning Publications
Published: 2018-08-06T21:00:00+00:00


6.1.2. Contracts and microservice applications

Each microservice has its own lifecycle, is deployed in its own runtime, and lives remotely from other microservices. In this scenario, any change to the contract of one service can’t be caught by the compiler. Figure 6.1 illustrates how each service runs in a different runtime.

Figure 6.1. Big-picture overview of the example application

Breaking the compatibility between services could happen and would be hard to detect. It’s easier to break compatibility because you don’t have direct feedback that something has been broken. It’s harder to detect that you’ve broken compatibility because, depending on the kind of (or lack of) tests you run, you may find the problem in (pre)production environments.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.