Introduction to Spring Cloud Contract
Learn to develop and test Java microservices more effectively with this foundational course on Spring Cloud Contract, a Java-based consumer-driven contract framework.
What you'll learn
Testing Java microservices is challenging. This is because, despite their independence, they often end up being coupled through some form of message passing or API calls. In this course, Introduction to Spring Cloud Contract, you will learn foundational knowledge of a powerful new framework, gaining the ability to test and release Java microservices more effectively. First, you will learn about the challenges of microservices testing, taking a look at the shortcomings of both end-to-end testing microservices and mocking their collaborators. Next, you will discover the consumer-driven contracts testing technique, the TDD at the API level approach to microservices testing that Spring Cloud Contract implements. Finally, you will become proficient in using Spring Cloud Contract to build both HTTP driven and message driven Java microservices. When you're finished with this course, you will have the skills and knowledge of Spring Cloud Contract and consumer-driven contract testing needed to truly make your microservices independently testable and deployable.
Table of contents
- Overview 1m
- Spring Cloud Contract Overview 2m
- Overview of Demo Application 1m
- Demo: Writing a Failing Consumer-side Test 12m
- Contract Definition Language Introduction 4m
- Demo: Creating Our Contract 9m
- Stub Runner Introduction 6m
- Demo: Finishing Our Consumer 11m
- Contract Verification Tests Introduction 2m
- Demo: Finishing Our Provider 9m
- Summary 1m