001package edu.pdx.cs.joy.di;
002
003/**
004 * The abstract super class of mock objects used for testing
005 */
006public abstract class MockObject
007{
008    /**
009     * Throws an exception because this method (or rather the method of a mock object that calls it) is not expected
010     * to be invoked during expected regular test execution.
011     */
012    protected void shouldNotInvoke()
013    {
014        throw new UnsupportedOperationException( "Did not expect this method to be invoked" );
015    }
016}