com.hammingweight.hammock
Interface IMockObject

All Known Implementing Classes:
AMockObject, MockAddressInfo, MockAlert, MockAlertType, MockAuthenticator, MockBinaryMessage, MockByteArrayInputStream, MockByteArrayOutputStream, MockCalendar, MockCanvas, MockChoice, MockChoiceGroup, MockClientSession, MockCommand, MockCommandListener, MockCommConnection, MockConnection, MockContact, MockContactList, MockContentConnection, MockContentHandler, MockContentHandlerServer, MockControl, MockControllable, MockCoordinates, MockCriteria, MockCustomItem, MockDatagram, MockDataInput, MockDataInputStream, MockDataOutput, MockDataOutputStream, MockDataSource, MockDate, MockDateField, MockEvent, MockEventList, MockFileConnection, MockFileSystemListener, MockForm, MockFramePositioningControl, MockGameCanvas, MockGauge, MockGUIControl, MockHashtable, MockHeaderSet, MockHttpConnection, MockHttpsConnection, MockHttpTransport, MockImageItem, MockInputConnection, MockInputStream, MockInputStreamReader, MockItemCommandListener, MockItemStateListener, MockKvmSerializable, MockLandmark, MockLayer, MockLayerManager, MockList, MockLocation, MockLocationListener, MockLocationProvider, MockMarshal, MockMessage, MockMessageConnection, MockMessageListener, MockMessagePart, MockMetaDataControl, MockMIDIControl, MockMultipartMessage, MockOperation, MockOrientation, MockOutputConnection, MockOutputStream, MockOutputStreamWriter, MockPIMItem, MockPIMList, MockPitchControl, MockPlayer, MockPlayerListener, MockPrintStream, MockProximityListener, MockQualifiedCoordinates, MockRandom, MockRateControl, MockReader, MockRecordControl, MockRequestListener, MockResponseListener, MockSecureConnection, MockSecurityInfo, MockServerRequestHandler, MockServerSocketConnection, MockServiceConnection, MockSessionNotifier, MockSoapEnvelope, MockSoapObject, MockSoapPrimitive, MockSoapSerializationEnvelope, MockSocketConnection, MockSourceStream, MockSpacer, MockSprite, MockStack, MockStopTimeControl, MockStreamConnection, MockStreamConnectionNotifier, MockStringItem, MockTempoControl, MockTextBox, MockTextField, MockTextMessage, MockTicker, MockTiledLayer, MockTimeBase, MockTimerTask, MockToDo, MockToDoList, MockToneControl, MockTransport, MockUDPDatagramConnection, MockVector, MockVideoControl, MockVolumeControl, MockWriter

public interface IMockObject

The IMockObject interface defines the methods that a mock object must implement to work with the Hammock framework.

Since:
Hammock 1.0
Author:
C.A. Meijer

Method Summary
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 

Method Detail

setInvocationHandler

void setInvocationHandler(IInvocationHandler handler)
Sets the invocation handler that the mock object should use to evaluate method invocations.

Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

IInvocationHandler getInvocationHandler()
Gets the invocation handler that the mock object uses to evaluate method invocations.

Returns:
The invocation handler used by the mock object.