Skip to content

Spring Boot, Business Service Unit Testing and Mocking with Mockito and JUnit

Notifications You must be signed in to change notification settings

lenlag/ServiceSpecie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServiceSpecie

Spring Boot - Unit Testing and Mocking with Mockito and JUnit.

This is a part of a Spring project with Unit testing of Business Services (ServiceSpecie, ServiceAnimal, ServicePerson).

Business Services are tested without using Repositories.

In my Unit Testing I use @Mock to simulate Repositories (SpecieRepository, AnimalRepository, PersonRepository) and @InjectMocks on Business Services to test.

pom.xml - Contains all the dependencies needed to build this project

About

Spring Boot, Business Service Unit Testing and Mocking with Mockito and JUnit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages