Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Latest commit

 

History

History
37 lines (23 loc) · 966 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 966 Bytes

Java Spring-Boot test examples

Collection of examples for testing within spring-boot using Junit and Mockito test frameworks.

Framework Documentation

Spring-Boot testing documentation

Junit test framework

Mockito - mocking and spying framework

HamcrestMatchers

JsonPath

BDD Mockito

Running Tests

To run tests we use the build tool Maven.

To run all tests:

mvn test

To run a specific test class e.g: classToTest.java use the command:

mvn -Dtest=classToTest test

To run a specific test method within a class:

mvn -Dtest=classToTest#testMethodToRun test