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

Examples of testing in Spring-Boot with Junit and Mockito

Notifications You must be signed in to change notification settings

SpenceUK/spring-boot-test-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Examples of testing in Spring-Boot with Junit and Mockito

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages