com.hammingweight.hammock.mocks.util
Class MockCalendar

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

public class MockCalendar
extends java.util.Calendar
implements IMockObject


Field Summary
static MockMethod MTHD_ADD_$_INT_INT
           
static MockMethod MTHD_AFTER_$_OBJECT
           
static MockMethod MTHD_BEFORE_$_OBJECT
           
static MockMethod MTHD_COMPUTE_FIELDS
           
static MockMethod MTHD_COMPUTE_TIME
           
static MockMethod MTHD_GET_GREATEST_MINIMUM_$_INT
           
static MockMethod MTHD_GET_LEAST_MAXIMUM_$_INT
           
static MockMethod MTHD_GET_MAXIMUM_$_INT
           
static MockMethod MTHD_GET_MINIMUM_$_INT
           
static MockMethod MTHD_GET_TIME_IN_MILLIS
           
static MockMethod MTHD_GET_TIME_ZONE
           
static MockMethod MTHD_ROLL_$_INT_BOOLEAN
           
static MockMethod MTHD_SET_TIME_IN_MILLIS_$_LONG
           
static MockMethod MTHD_SET_TIME_ZONE_$_TIMEZONE
           
 
Fields inherited from class java.util.Calendar
AM, AM_PM, APRIL, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DECEMBER, FEBRUARY, FRIDAY, HOUR, HOUR_OF_DAY, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY, YEAR
 
Constructor Summary
MockCalendar()
           
MockCalendar(IInvocationHandler handler)
           
 
Method Summary
 void add(int arg0, int arg1)
           
 boolean after(java.lang.Object arg0)
           
 boolean before(java.lang.Object arg0)
           
 void computeFields()
           
 void computeTime()
           
 int getGreatestMinimum(int arg0)
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 int getLeastMaximum(int arg0)
           
 int getMaximum(int arg0)
           
 int getMinimum(int arg0)
           
 long getTimeInMillis()
           
 java.util.TimeZone getTimeZone()
           
 void roll(int arg0, boolean arg1)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setTimeInMillis(long arg0)
           
 void setTimeZone(java.util.TimeZone arg0)
           
 
Methods inherited from class java.util.Calendar
equals, get, getInstance, getInstance, getTime, set, setTime
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_ADD_$_INT_INT

public static final MockMethod MTHD_ADD_$_INT_INT

MTHD_AFTER_$_OBJECT

public static final MockMethod MTHD_AFTER_$_OBJECT

MTHD_BEFORE_$_OBJECT

public static final MockMethod MTHD_BEFORE_$_OBJECT

MTHD_COMPUTE_FIELDS

public static final MockMethod MTHD_COMPUTE_FIELDS

MTHD_COMPUTE_TIME

public static final MockMethod MTHD_COMPUTE_TIME

MTHD_GET_GREATEST_MINIMUM_$_INT

public static final MockMethod MTHD_GET_GREATEST_MINIMUM_$_INT

MTHD_GET_LEAST_MAXIMUM_$_INT

public static final MockMethod MTHD_GET_LEAST_MAXIMUM_$_INT

MTHD_GET_MAXIMUM_$_INT

public static final MockMethod MTHD_GET_MAXIMUM_$_INT

MTHD_GET_MINIMUM_$_INT

public static final MockMethod MTHD_GET_MINIMUM_$_INT

MTHD_GET_TIME_IN_MILLIS

public static final MockMethod MTHD_GET_TIME_IN_MILLIS

MTHD_GET_TIME_ZONE

public static final MockMethod MTHD_GET_TIME_ZONE

MTHD_ROLL_$_INT_BOOLEAN

public static final MockMethod MTHD_ROLL_$_INT_BOOLEAN

MTHD_SET_TIME_IN_MILLIS_$_LONG

public static final MockMethod MTHD_SET_TIME_IN_MILLIS_$_LONG

MTHD_SET_TIME_ZONE_$_TIMEZONE

public static final MockMethod MTHD_SET_TIME_ZONE_$_TIMEZONE
Constructor Detail

MockCalendar

public MockCalendar()

MockCalendar

public MockCalendar(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.

add

public void add(int arg0,
                int arg1)

after

public boolean after(java.lang.Object arg0)
Overrides:
after in class java.util.Calendar

before

public boolean before(java.lang.Object arg0)
Overrides:
before in class java.util.Calendar

computeFields

public void computeFields()

computeTime

public void computeTime()

getGreatestMinimum

public int getGreatestMinimum(int arg0)

getLeastMaximum

public int getLeastMaximum(int arg0)

getMaximum

public int getMaximum(int arg0)

getMinimum

public int getMinimum(int arg0)

getTimeInMillis

public long getTimeInMillis()
Overrides:
getTimeInMillis in class java.util.Calendar

getTimeZone

public java.util.TimeZone getTimeZone()
Overrides:
getTimeZone in class java.util.Calendar

roll

public void roll(int arg0,
                 boolean arg1)

setTimeInMillis

public void setTimeInMillis(long arg0)
Overrides:
setTimeInMillis in class java.util.Calendar

setTimeZone

public void setTimeZone(java.util.TimeZone arg0)
Overrides:
setTimeZone in class java.util.Calendar