Throwing Exceptions From Stubbed Methods

It would be really useful if we could tell our mocked methods to throw an Exception. That way we could test that our code behaves correctly in such circumstances.

MockObject has us covered!

Lesson Branch: https://github.com/GaryClarke/test-doubles/tree/throw-exceptions-from-stubbed

Complete and Continue  
Discussion

0 comments