PowerMock
-
junit
Constructor Unit Testing with Mockito
Constructor unit testing with Mockito is a task Java developers come across really often. In this brief tutorial, we will…
Read More » -
PowerMockito
PowerMockito Spy Example
A unit test should test a class in isolation. Side effects from other classes or the system should be eliminated…
Read More » -
Mockito
Mockito mock static method example
In this article, I am going to show you how to mock static methods using Powermockito. PowerMock is an open source…
Read More » -
Mockito
Powermock – Mockito Integration Example
Most of the mocking frameworks in Java, including Mockito, cannot mock static methods or final classes. If we come across…
Read More »