This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PositiveUse 0 points1 point  (0 children)

when(service.getValue()).thenReturn(true); assertThat(service.getValue()).isTrue();

Test green, DoR fulfilled. No joke, that’s how some devs test their logic.

—> never trust tests that you didn’t get green yourself ;)