LMock swallows the exceptions thrown by checkers #2

Open
dfurodet opened this Issue Dec 6, 2011 · 2 comments

Projects

None yet

1 participant

@dfurodet

If the user defines a checker which has an error (e.g. it throws an NPE), Lmock swallows it and so hides the bug.
It must be able to forward the exception directly to the application.

@dfurodet

The behavior should be as follows:

  • If a checker throws an exception (not an error, because the user may wish to use assert...)
  • Then Lmock should catch it
  • And forward a special type of error (UnexpectedCheckerError) That way, there's no confusion between the testing environment and the tested application.
@dfurodet

The behavior should be as follows:

  • If a checker throws an exception (not an error, because the user may wish to use assert...)
  • Then Lmock should catch it
  • And forward a special type of error (UnexpectedCheckerError) That way, there's no confusion between the testing environment and the tested application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment