Basic stubbing and verification

Advanced method stubbing

This is a preview lesson
Register or sign in to take this lesson.

Advanced method stubbing

What will students be able to do at the end of this section?

In this lesson you will learn you will learn how to stub methods using:
doThrow()
doReturn()
doAnswer()
doNothing()
doCallRealMethod()