Skip to content

kevinjuliow/spring-boot-unitTesting-RESTAPIs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Unit Testing with Spring, JUnit, and Mockito

This repository demonstrates how to perform unit testing for REST APIs in a Spring Boot application using Spring, JUnit, and Mockito.

Table of Contents

Setup and Configuration

Before running the tests, make sure you have the necessary tools and dependencies set up:

IntelliJ IDEA Configuration

  • Configure testing libraries in IntelliJ IDEA guide.

JUnit

JUnit testing framework for Java applications. Learn more about JUnit here.

Mockito

Mockito is a powerful mocking framework for Java. Find answers to common questions about Mockito here.

Spring Boot Data JPA

If you're new to Spring Boot Data JPA, you can get an introduction here.

Running the Tests

Once your development environment is properly configured, you can run the unit tests for your Spring Boot REST APIs.

About

Spring Boot Unit Testing Using Junit , Mockito

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages