Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn’t give you hangover because the tests are very readable and they produce clean verification errors. For more detail, see https://site.mockito.org
![](/assets/bg-edward-howell-hYcriIw0gHc-unsplash.jpg)
Mockito: 3 Ways to Init Mock in JUnit 5
Initialize Mockito mock objects in JUnit 5 using MockitoExtension, MockitoAnnotations#initMocks, or Mockito#mock.
![](/assets/bg-romet-tagobert-ytrbFQSJBxw-unsplash.jpg)
Mockito: ArgumentCaptor
Three ways to create ArgumentCaptor in unit tests (Mockito JUnit Runner, annotations, or factory method) and its different usage.
![](/assets/bg-alex-block-eicoRD590x4-unsplash.jpg)
Mockito: 4 Ways to Verify Interactions
Verify interaction with mock objects with verify(), verifyZeroInteractions() verifyNoMoreInteractions(), and inOrder().
![](/assets/bg-mike-kenneally-tNALoIZhqVM-unsplash.jpg)
Mockito: 3 Ways to Init Mock in JUnit 4
Initialize Mockito mock objects in JUnit 4 using MockitoJUnitRunner, MockitoAnnotations#initMocks, or Mockito#mock.
![](/assets/bg-board-2450236_1280.jpg)
Testing with GwtMockito
My recent bug fixing experience on Google Web Kit (GWT) with GwtMockito: problem understanding, code refactoring, mocking framework preparation, testing, and comparison between GwtMockito and GWTTestCase.