public abstract class FakeObjectMethods extends Object implements Invokable
Constructor and Description |
---|
FakeObjectMethods(Invokable next) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
fakeEquals(Object invokedObject,
Object other) |
protected abstract void |
fakeFinalize(Object invokedObject) |
protected abstract int |
fakeHashCode(Object invokedObject) |
protected abstract String |
fakeToString(Object invokedObject) |
Object |
invoke(Invocation invocation)
Performs an action in response to an invocation.
|
String |
toString() |
public FakeObjectMethods(Invokable next)
public Object invoke(Invocation invocation) throws Throwable
Invokable
invoke
in interface Invokable
invocation
- The invocation to perform.null
if the invoked method has a void return type.Throwable
- An exception to be thrown to the caller, if not returning a value. Any checked exception
thrown must be in the throws
list of the invoked method.protected abstract int fakeHashCode(Object invokedObject)
protected abstract void fakeFinalize(Object invokedObject)
Copyright © 2003–2018 jMock. All rights reserved.