Advertisement

Testing the Distributed System

Chapter
  • 2k Downloads

Abstract

In this chapter, you’ll see the importance of having good test suites in a distributed system. You’ll realize how Cucumber and structuring the test project into layers can provide a simple and powerful solution to cover an end-to-end strategy. Cucumber provides a business-friendly language to design the test cases—Gherkin—and it integrates with Java, so it’s a choice that combines perfectly with our use case.

Also, the chapter pays extra attention to some details that can ease development—step parameterization and reusability, understanding how Cucumber works when instantiating tests, and how to benefit from dependency injection. And, most importantly, you’ll see how making your code testable makes everything simpler just by adding some optional logic to your services.

Keywords

Dependency Injection User John assertThat Microservices Spring Boot 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Moises Macero 2017

Authors and Affiliations

  1. 1.New YorkUSA

Personalised recommendations