Skip to main content

Stubbing Exceptions and void Methods

Learn Stubbing Exceptions and void Methods (Mockito, JUnit 5 & Mockito) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Make a collaborator fail, and stub methods that return nothing.

More lessons in Mockito