NYJavaSIG 20190822 VictorGrazi SpringContracts
Автор: NYJavaSIG
Загружено: 2019-09-29
Просмотров: 54
Описание:
CONSUMER DRIVEN CONTRACTS: THE MISSING LINK IN SERVICE TESTING
You’ve built your 12 Factor Microservices application and all tests pass with 95% coverage. Looking good, right?Then you deploy to production, and kapow! Rollback! What happened?
Well, your tests all passed but you never tested the endpoints. Consumer Driven Contracts is a development model for specifying contracts that are shared by providers and consumers, to generate boundary tests in the form of executable stubs. In this talk, we will build a client and server application where all the tests pass. Then we will show how they fail when deployed. Finally, we will see how Spring Contracts could have saved a lot of heartache. Here’s a list of useful topics we’ll cover:
Spring Contracts, and some of its underlying technologies, including:
Project organization; POM dependencies
Contract syntax
Generating stubs from contracts
Running the stubs on the consumer side
Verifying the stubs on the producer side
Versioning
A brief look at the underlying testing frameworks:
MockMvc
WireMock API testing framework
RestAssured testing framework
Mockito
Verifying non-Java APIs
BIO
Victor Grazi leads the US infrastructure development team at Nomura Securities. He is a Pluralsight author, has served as infoQ Java lead editor, served on the Java community process executive committee, and is an Oracle Java Champion.
Victor is a frequent presenter at technical conferences, and hosts the "Java Concurrent Animated" and "Bytecode Explorer" open source projects.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: