I'm new in writing Junit test cases. I'm getting an error " The method when(T) in the type Mockito is not applicable for the arguments (void)" , when I'm trying to Mockito on my service void method.
How do I hook up my service in the @Before method set up.
the @Before method was already generated by other member in team, I need to hook up my service in that inorder to avoid null pointer exception.
Here is service looks like
can you please help how to Mock void method in the @Before method.