79293215

Date: 2024-12-19 05:55:19
Score: 0.5
Natty:
Report link

You will need to create a mock of your service that returns null for a given id:

final MyService myService = mock(MyService.class);
when(myService.getPersonById("123").thenReturn(null);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sweintritt