com.hammingweight.hammock.mocks.util
Class MockDate
java.lang.Object
java.util.Date
com.hammingweight.hammock.mocks.util.MockDate
- All Implemented Interfaces:
- IMockObject
public class MockDate
- extends java.util.Date
- implements IMockObject
Methods inherited from class java.util.Date |
equals, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
MTHD_GET_TIME
public static final MockMethod MTHD_GET_TIME
MTHD_SET_TIME_$_LONG
public static final MockMethod MTHD_SET_TIME_$_LONG
MockDate
public MockDate(long arg0)
MockDate
public MockDate(long arg0,
IInvocationHandler handler)
MockDate
public MockDate()
MockDate
public MockDate(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.
getTime
public long getTime()
- Overrides:
getTime
in class java.util.Date
setTime
public void setTime(long arg0)
- Overrides:
setTime
in class java.util.Date