Chapter 2. Application under test

 

This chapter covers

  • Exploring a sample application
  • Understanding critical parts of the code
  • Developing microservices with Java EE and Spring Boot

The previous chapter introduced you to microservices, including their basic anatomy and architecture. This introduction was intended to give you insight into the kinds of tests you might need to write for a microservice-based architecture.

This chapter introduces the application that will be used throughout the book to demonstrate the development and testing of a microservices architecture. Our goal is to provide an easy-to-follow example that will help you understand the relevance of each kind of test that will be applied. We try to follow best practices for a microservices architecture, but we make some design choices for the sake of simplicity and also purely for educational purposes. For instance, we may use more technologies than necessary, or simplify the number of layers used in a microservice because they don’t add value from a testing point of view. In such cases, we point out the reason for a particular approach and discuss how to perform these tasks in real-world programming. It’s ultimately your responsibility as a developer to choose the appropriate tools to use, but we always offer a recommended approach.

2.1. Getting started

2.2. Prerequisites

2.3. Architecture

2.4. Application design patterns

2.5. Design decisions

Summary