0

I have this construction:

Mockito.when(Integer.valueOf(serviceMock.getScore(bet))).thenThrow(e);

int getScore(final MatchBetModel bet);

what does it mean valueOf inside when?

I have strange eclipse specific, and if I delete valuOf I get error.

I cannot find place where I can fix it.

I hope your help!

gstackoverflow
  • 36,709
  • 117
  • 359
  • 710

0 Answers0