So I have this Mockito unit test:
@Test public void createCard() { when(jwtServiceMock.getId(anyString())).thenReturn(validUserToken); when(prof
The culprit is this part:
.thenReturn(any(Orientation.class))
any() is supposed to be used in conjunction with When.
any()
When
Do something like this:
@Mock private Orientation orientationMock; // ... .thenReturn(orientationMock);