Tag: tests

  1. Mocking of callback function via Mockito

    I suppose, the first case every developer learn in Mockito is mocking methods with a return value. Construction when().thenReturn() covers 80% of all case in a code I suppose. Next thing what developers learn in Mockito is mocking of void method. doAnswer().when() usually used for this purpose. But…

    on java mockito tests