- clone the repository
git clone https://github.com/mirekgab/springtransactions.git
- go into the directory
cd springtransactions/
- run the test where the order is successful
./mvnw test -Dtest="OrderControllerIT#orderCompletedSuccessfully"
- run the test where the order fails and throw an exception
./mvnw test -Dtest="OrderControllerIT#insufficientQuantityInOneOrderPosition"