79299040

Date: 2024-12-21 07:45:07
Score: 3.5
Natty:
Report link

I think the test framework expects the exception to be raised inside setValue() and not inside the listener. Try to move the code of the listener to a separate function and use this function in assertThrows(). Why do you validate the values inside a test? Shouldn‘t it be validated inside the logic?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: KleeblattAlex