I have this method declared like this
private Long doThings(MyEnum enum, Long otherParam);
and this enum
public enum MyEnum{
VAL_A,
VAL_B,
VAL_C
}
Question: How do I mock doThings()
calls?
I cannot match any MyEnum
.
The following doesn't work:
Mockito.when(object.doThings(Matchers.any(), Matchers.anyLong()))
.thenReturn(123L);