Skip to content
JUnit 5 test cases for Spring Boot 2 REST APIs
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src initial version Jul 15, 2018
.gitignore initial version Jul 15, 2018
LICENSE added license Jul 15, 2018
README.md added readme Jul 15, 2018
pom.xml initial version Jul 15, 2018

README.md

JUnit 5 test cases for Spring Boot 2 REST APIs

Example on how to Unit Test RESTful Web Services using Spring Boot Test framework and JUnit 5. It uses MockMvc to provide Spring MVC infrastructure without starting the HTTP Server. SpringExtension and @WebMvcTest provide rest of the environment for unit testing.

Related Article

Refer Spring Boot 2 + JUnit 5 REST API Unit Testing for detailed article.

Technology Stack

  • Java 10
  • Spring Boot 2.0.3.RELEASE
  • Junit 5
  • Database: HSQLDB
  • IDE: Eclipse Photon / IntelliJ IDEA 2018.1.5
You can’t perform that action at this time.