Information Technology
Hands on Training icon
Hands On Training
Hands on Training icon

Implement consumer-driven contract testing for Java microservices using the Pact framework

Course Cover
compare button icon

Course Features

icon

Duration

1 hour

icon

Delivery Method

Online

icon

Available on

Limited Access

icon

Accessibility

Mobile, Desktop, Laptop

icon

Language

English

icon

Subtitles

English

icon

Level

Intermediate

icon

Teaching Type

Self Paced

icon

Video Content

1 hour

Course Description

Learn how you can test Java microservices using consumer-driven contracts using Open Liberty.With microservices-based architectures it is essential to conduct thorough testing to make sure that the microservices that are dependent on each other are able to communicate effectively. In order to avoid the possibility of multiple failure points at various integration points, the combination of integration, unit, and end-to-end tests is used. Although unit tests are speedy but they're not as reliable since they are run in isolation and rely mostly upon mock data.Integration tests tackle this issue by testing against actual running services. However, they can be slow because they are dependent on other microservices and are less reliable due to the fact that they are susceptible to changes from outside. End-to-end tests are generally more reliable because they test functions from the perspective of the user. However, a graphic user interface (GUI) component is typically needed to conduct end-to-end tests as well. GUI components depend on third-party software, like Selenium which demands heavy computational in time as well as resources. Contract testing fills in the gaps between the weaknesses of the various testing methods. It is an effective method to test the integration of a point, by isolating every microservice and determining if it's HTTP requests and responses the microservice sends are in line with an agreed upon understanding recorded in the contract. In this way, contract testing makes sure that microservices are able to communicate with one another.

Course Overview

projects-img

Post Course Interactions

projects-img

Instructor-Moderated Discussions

Skills You Will Gain

What You Will Learn

Learn how to test Java microservices with consumer-driven contracts in Open Liberty

Course Cover