Follow
Series

Spring Boot


Articles in this series

How to mock a method which belongs to the same class you're testing?

Mar 30, 20232 min read

In this post, learn how to mock a method using Mockito which belongs to the same class you're testing in Spring Boot. · The core principle of unit...

How to mock a method which belongs to the same class you're testing?
Six ways of dependency injection in Spring Boot — A Deep Dive