Class MockObject

java.lang.Object
edu.pdx.cs.joy.di.MockObject
Direct Known Subclasses:
MockBookInventory, MockCreditCardService

public abstract class MockObject extends Object
The abstract super class of mock objects used for testing
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • shouldNotInvoke

      protected void 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.