79484315

Date: 2025-03-04 16:40:19
Score: 0.5
Natty:
Report link

Your querylist is declared, but not initialized. It is bad practice to @Mock the whole list - See this question and answers. In the snippets provided the @Mock annotation doesn't even seem necessary.

There are a couple of options, the first seems most applicable to your situation:

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Mock
  • Low reputation (1):
Posted by: Sjors de Haas