79457116

Date: 2025-02-21 10:53:06
Score: 1.5
Natty:
Report link

Used:

SampleResponse sampleResponse = mock(SampleResponse.class);
when(response.asJson(SampleResponse.class)).thenReturn(sampleResponse);

to make it work.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: blinkThrice