com.hammingweight.hammock.mocks.util
Class MockDate

java.lang.Object
  extended by java.util.Date
      extended by com.hammingweight.hammock.mocks.util.MockDate
All Implemented Interfaces:
IMockObject

public class MockDate
extends java.util.Date
implements IMockObject


Field Summary
static MockMethod MTHD_GET_TIME
           
static MockMethod MTHD_SET_TIME_$_LONG
           
 
Constructor Summary
MockDate()
           
MockDate(IInvocationHandler handler)
           
MockDate(long arg0)
           
MockDate(long arg0, IInvocationHandler handler)
           
 
Method Summary
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 long getTime()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setTime(long arg0)
           
 
Methods inherited from class java.util.Date
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_TIME

public static final MockMethod MTHD_GET_TIME

MTHD_SET_TIME_$_LONG

public static final MockMethod MTHD_SET_TIME_$_LONG
Constructor Detail

MockDate

public MockDate(long arg0)

MockDate

public MockDate(long arg0,
                IInvocationHandler handler)

MockDate

public MockDate()

MockDate

public MockDate(IInvocationHandler handler)
Method Detail

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