Java Doreturn Void
doNothing().when(yourMock).yourMockedMethod();
DauletSaurbekov
doNothing().when(yourMock).yourMockedMethod();
Difference between void and return method
Void Method:
The "void" return type means that this
method doesn't have a return type.
It is mostly used for printing result
to console