Package edu.pdx.cs.joy.di
Class MockObject
java.lang.Object
edu.pdx.cs.joy.di.MockObject
- Direct Known Subclasses:
MockBookInventory,MockCreditCardService
The abstract super class of mock objects used for testing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThrows an exception because this method (or rather the method of a mock object that calls it) is not expected to be invoked during expected regular test execution.
-
Constructor Details
-
MockObject
public MockObject()
-
-
Method Details
-
shouldNotInvoke
Throws an exception because this method (or rather the method of a mock object that calls it) is not expected to be invoked during expected regular test execution.
-