Skip to content

bytestree/spring-restful-service-junit5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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