com.hammingweight.hammock.mocks.util
Class MockTimerTask
java.lang.Object
java.util.TimerTask
com.hammingweight.hammock.mocks.util.MockTimerTask
- All Implemented Interfaces:
- IMockObject, java.lang.Runnable
public class MockTimerTask
- extends java.util.TimerTask
- implements IMockObject
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTHD_CANCEL
public static final MockMethod MTHD_CANCEL
MTHD_RUN
public static final MockMethod MTHD_RUN
MTHD_SCHEDULED_EXECUTION_TIME
public static final MockMethod MTHD_SCHEDULED_EXECUTION_TIME
MockTimerTask
public MockTimerTask()
MockTimerTask
public MockTimerTask(IInvocationHandler handler)
setInvocationHandler
public final void setInvocationHandler(IInvocationHandler handler)
- Description copied from interface:
IMockObject
- Sets the invocation handler that the mock object should use to evaluate
method invocations.
- Specified by:
setInvocationHandler
in interface IMockObject
- Parameters:
handler
- The invocation handler to be used by the mock object.
getInvocationHandler
public final IInvocationHandler getInvocationHandler()
- Description copied from interface:
IMockObject
- Gets the invocation handler that the mock object uses to evaluate method
invocations.
- Specified by:
getInvocationHandler
in interface IMockObject
- Returns:
- The invocation handler used by the mock object.
cancel
public boolean cancel()
- Overrides:
cancel
in class java.util.TimerTask
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in class java.util.TimerTask
scheduledExecutionTime
public long scheduledExecutionTime()
- Overrides:
scheduledExecutionTime
in class java.util.TimerTask