Skip to content

gavinklfong/spring-mock-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration of Testing With MockServer

This repository contains a sample implementation of price quotation API and the automated test cases.

The purpose to demonstrate the test automation using MockServer.

API

The price quotation API exposes an endpoint for quotation request

[POST] /quotations/generate`

Build & Execution

To build and run API, run this command to compile and run unit tests and integration tests

mvn clean install

System Logic

The Quotation API orchestrates external APIs - Customer, Product and Quotation Engine in order to validate and generate price quotation upon client's request.

System Logic

System Component

API clients are responsible for the integration with external APIs.

Component Diagram

Maven Lifecycle for Test Execution

Maven lifecycle manages the test execution and initialization of MockServer. Refer to pom.xml for the detailed configuration.

Maven Lifecycle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages