com.hammingweight.hammock.mocks.microedition.pim
Class MockToDo

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.microedition.pim.MockToDo
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.pim.PIMItem, javax.microedition.pim.ToDo

public class MockToDo
extends AMockObject
implements javax.microedition.pim.ToDo


Field Summary
static MockMethod MTHD_ADD_BINARY_$_INT_INT_ARRAY_BYTE_INT_INT
           
static MockMethod MTHD_ADD_BOOLEAN_$_INT_INT_BOOLEAN
           
static MockMethod MTHD_ADD_DATE_$_INT_INT_LONG
           
static MockMethod MTHD_ADD_INT_$_INT_INT_INT
           
static MockMethod MTHD_ADD_STRING_$_INT_INT_STRING
           
static MockMethod MTHD_ADD_STRING_ARRAY_$_INT_INT_ARRAY_STRING
           
static MockMethod MTHD_ADD_TO_CATEGORY_$_STRING
           
static MockMethod MTHD_COMMIT
           
static MockMethod MTHD_COUNT_VALUES_$_INT
           
static MockMethod MTHD_GET_ATTRIBUTES_$_INT_INT
           
static MockMethod MTHD_GET_BINARY_$_INT_INT
           
static MockMethod MTHD_GET_BOOLEAN_$_INT_INT
           
static MockMethod MTHD_GET_CATEGORIES
           
static MockMethod MTHD_GET_DATE_$_INT_INT
           
static MockMethod MTHD_GET_FIELDS
           
static MockMethod MTHD_GET_INT_$_INT_INT
           
static MockMethod MTHD_GET_PIMLIST
           
static MockMethod MTHD_GET_STRING_$_INT_INT
           
static MockMethod MTHD_GET_STRING_ARRAY_$_INT_INT
           
static MockMethod MTHD_IS_MODIFIED
           
static MockMethod MTHD_MAX_CATEGORIES
           
static MockMethod MTHD_REMOVE_FROM_CATEGORY_$_STRING
           
static MockMethod MTHD_REMOVE_VALUE_$_INT_INT
           
static MockMethod MTHD_SET_BINARY_$_INT_INT_INT_ARRAY_BYTE_INT_INT
           
static MockMethod MTHD_SET_BOOLEAN_$_INT_INT_INT_BOOLEAN
           
static MockMethod MTHD_SET_DATE_$_INT_INT_INT_LONG
           
static MockMethod MTHD_SET_INT_$_INT_INT_INT_INT
           
static MockMethod MTHD_SET_STRING_$_INT_INT_INT_STRING
           
static MockMethod MTHD_SET_STRING_ARRAY_$_INT_INT_INT_ARRAY_STRING
           
 
Fields inherited from interface javax.microedition.pim.ToDo
CLASS, CLASS_CONFIDENTIAL, CLASS_PRIVATE, CLASS_PUBLIC, COMPLETED, COMPLETION_DATE, DUE, NOTE, PRIORITY, REVISION, SUMMARY, UID
 
Fields inherited from interface javax.microedition.pim.PIMItem
ATTR_NONE, BINARY, BOOLEAN, DATE, EXTENDED_ATTRIBUTE_MIN_VALUE, EXTENDED_FIELD_MIN_VALUE, INT, STRING, STRING_ARRAY
 
Fields inherited from interface com.hammingweight.hammock.IHammockExceptionErrors
ARGUMENT_MATCHER_ALREADY_SET, CANT_SET_VOID_RETURN_VALUE, CLASS_IS_NOT_THROWABLE, DOES_NOT_SUBCLASS_MOCK_OBJECT, HANDLER_NOT_SET, INCORRECT_MOCK_OBJECT, INCORRECT_RETURN_CLASS, INCORRECT_THROWABLE_CLASS, METHOD_CANNOT_BE_EVALUATED, METHOD_INVOKED_OUT_OF_SEQUENCE, METHOD_INVOKED_TOO_MANY_TIMES, METHOD_INVOKED_UNEXPECTED_NUMBER_OF_TIMES, NO_RETURN_VALUE, NO_RETURN_VALUE_SET, NUM_INVOCATIONS_ALREADY_SET, RETURN_VALUE_ALREADY_SET, WRONG_ARGUMENT_CLASS, WRONG_NUMBER_OF_ARGS
 
Constructor Summary
MockToDo()
           
MockToDo(IInvocationHandler handler)
           
 
Method Summary
 void addBinary(int arg0, int arg1, byte[] arg2, int arg3, int arg4)
           
 void addBoolean(int arg0, int arg1, boolean arg2)
           
 void addDate(int arg0, int arg1, long arg2)
           
 void addInt(int arg0, int arg1, int arg2)
           
 void addString(int arg0, int arg1, java.lang.String arg2)
           
 void addStringArray(int arg0, int arg1, java.lang.String[] arg2)
           
 void addToCategory(java.lang.String arg0)
           
 void commit()
           
 int countValues(int arg0)
           
 int getAttributes(int arg0, int arg1)
           
 byte[] getBinary(int arg0, int arg1)
           
 boolean getBoolean(int arg0, int arg1)
           
 java.lang.String[] getCategories()
           
 long getDate(int arg0, int arg1)
           
 int[] getFields()
           
 int getInt(int arg0, int arg1)
           
 javax.microedition.pim.PIMList getPIMList()
           
 java.lang.String getString(int arg0, int arg1)
           
 java.lang.String[] getStringArray(int arg0, int arg1)
           
 boolean isModified()
           
 int maxCategories()
           
 void removeFromCategory(java.lang.String arg0)
           
 void removeValue(int arg0, int arg1)
           
 void setBinary(int arg0, int arg1, int arg2, byte[] arg3, int arg4, int arg5)
           
 void setBoolean(int arg0, int arg1, int arg2, boolean arg3)
           
 void setDate(int arg0, int arg1, int arg2, long arg3)
           
 void setInt(int arg0, int arg1, int arg2, int arg3)
           
 void setString(int arg0, int arg1, int arg2, java.lang.String arg3)
           
 void setStringArray(int arg0, int arg1, int arg2, java.lang.String[] arg3)
           
 
Methods inherited from class com.hammingweight.hammock.AMockObject
assertReturnNotNull, getInvocationHandler, setInvocationHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_ADD_BINARY_$_INT_INT_ARRAY_BYTE_INT_INT

public static final MockMethod MTHD_ADD_BINARY_$_INT_INT_ARRAY_BYTE_INT_INT

MTHD_ADD_BOOLEAN_$_INT_INT_BOOLEAN

public static final MockMethod MTHD_ADD_BOOLEAN_$_INT_INT_BOOLEAN

MTHD_ADD_DATE_$_INT_INT_LONG

public static final MockMethod MTHD_ADD_DATE_$_INT_INT_LONG

MTHD_ADD_INT_$_INT_INT_INT

public static final MockMethod MTHD_ADD_INT_$_INT_INT_INT

MTHD_ADD_STRING_$_INT_INT_STRING

public static final MockMethod MTHD_ADD_STRING_$_INT_INT_STRING

MTHD_ADD_STRING_ARRAY_$_INT_INT_ARRAY_STRING

public static final MockMethod MTHD_ADD_STRING_ARRAY_$_INT_INT_ARRAY_STRING

MTHD_ADD_TO_CATEGORY_$_STRING

public static final MockMethod MTHD_ADD_TO_CATEGORY_$_STRING

MTHD_COMMIT

public static final MockMethod MTHD_COMMIT

MTHD_COUNT_VALUES_$_INT

public static final MockMethod MTHD_COUNT_VALUES_$_INT

MTHD_GET_ATTRIBUTES_$_INT_INT

public static final MockMethod MTHD_GET_ATTRIBUTES_$_INT_INT

MTHD_GET_BINARY_$_INT_INT

public static final MockMethod MTHD_GET_BINARY_$_INT_INT

MTHD_GET_BOOLEAN_$_INT_INT

public static final MockMethod MTHD_GET_BOOLEAN_$_INT_INT

MTHD_GET_CATEGORIES

public static final MockMethod MTHD_GET_CATEGORIES

MTHD_GET_DATE_$_INT_INT

public static final MockMethod MTHD_GET_DATE_$_INT_INT

MTHD_GET_FIELDS

public static final MockMethod MTHD_GET_FIELDS

MTHD_GET_INT_$_INT_INT

public static final MockMethod MTHD_GET_INT_$_INT_INT

MTHD_GET_PIMLIST

public static final MockMethod MTHD_GET_PIMLIST

MTHD_GET_STRING_$_INT_INT

public static final MockMethod MTHD_GET_STRING_$_INT_INT

MTHD_GET_STRING_ARRAY_$_INT_INT

public static final MockMethod MTHD_GET_STRING_ARRAY_$_INT_INT

MTHD_IS_MODIFIED

public static final MockMethod MTHD_IS_MODIFIED

MTHD_MAX_CATEGORIES

public static final MockMethod MTHD_MAX_CATEGORIES

MTHD_REMOVE_FROM_CATEGORY_$_STRING

public static final MockMethod MTHD_REMOVE_FROM_CATEGORY_$_STRING

MTHD_REMOVE_VALUE_$_INT_INT

public static final MockMethod MTHD_REMOVE_VALUE_$_INT_INT

MTHD_SET_BINARY_$_INT_INT_INT_ARRAY_BYTE_INT_INT

public static final MockMethod MTHD_SET_BINARY_$_INT_INT_INT_ARRAY_BYTE_INT_INT

MTHD_SET_BOOLEAN_$_INT_INT_INT_BOOLEAN

public static final MockMethod MTHD_SET_BOOLEAN_$_INT_INT_INT_BOOLEAN

MTHD_SET_DATE_$_INT_INT_INT_LONG

public static final MockMethod MTHD_SET_DATE_$_INT_INT_INT_LONG

MTHD_SET_INT_$_INT_INT_INT_INT

public static final MockMethod MTHD_SET_INT_$_INT_INT_INT_INT

MTHD_SET_STRING_$_INT_INT_INT_STRING

public static final MockMethod MTHD_SET_STRING_$_INT_INT_INT_STRING

MTHD_SET_STRING_ARRAY_$_INT_INT_INT_ARRAY_STRING

public static final MockMethod MTHD_SET_STRING_ARRAY_$_INT_INT_INT_ARRAY_STRING
Constructor Detail

MockToDo

public MockToDo()

MockToDo

public MockToDo(IInvocationHandler handler)
Method Detail

addBinary

public void addBinary(int arg0,
                      int arg1,
                      byte[] arg2,
                      int arg3,
                      int arg4)
Specified by:
addBinary in interface javax.microedition.pim.PIMItem

addBoolean

public void addBoolean(int arg0,
                       int arg1,
                       boolean arg2)
Specified by:
addBoolean in interface javax.microedition.pim.PIMItem

addDate

public void addDate(int arg0,
                    int arg1,
                    long arg2)
Specified by:
addDate in interface javax.microedition.pim.PIMItem

addInt

public void addInt(int arg0,
                   int arg1,
                   int arg2)
Specified by:
addInt in interface javax.microedition.pim.PIMItem

addString

public void addString(int arg0,
                      int arg1,
                      java.lang.String arg2)
Specified by:
addString in interface javax.microedition.pim.PIMItem

addStringArray

public void addStringArray(int arg0,
                           int arg1,
                           java.lang.String[] arg2)
Specified by:
addStringArray in interface javax.microedition.pim.PIMItem

addToCategory

public void addToCategory(java.lang.String arg0)
                   throws javax.microedition.pim.PIMException
Specified by:
addToCategory in interface javax.microedition.pim.PIMItem
Throws:
javax.microedition.pim.PIMException

commit

public void commit()
            throws javax.microedition.pim.PIMException
Specified by:
commit in interface javax.microedition.pim.PIMItem
Throws:
javax.microedition.pim.PIMException

countValues

public int countValues(int arg0)
Specified by:
countValues in interface javax.microedition.pim.PIMItem

getAttributes

public int getAttributes(int arg0,
                         int arg1)
Specified by:
getAttributes in interface javax.microedition.pim.PIMItem

getBinary

public byte[] getBinary(int arg0,
                        int arg1)
Specified by:
getBinary in interface javax.microedition.pim.PIMItem

getBoolean

public boolean getBoolean(int arg0,
                          int arg1)
Specified by:
getBoolean in interface javax.microedition.pim.PIMItem

getCategories

public java.lang.String[] getCategories()
Specified by:
getCategories in interface javax.microedition.pim.PIMItem

getDate

public long getDate(int arg0,
                    int arg1)
Specified by:
getDate in interface javax.microedition.pim.PIMItem

getFields

public int[] getFields()
Specified by:
getFields in interface javax.microedition.pim.PIMItem

getInt

public int getInt(int arg0,
                  int arg1)
Specified by:
getInt in interface javax.microedition.pim.PIMItem

getPIMList

public javax.microedition.pim.PIMList getPIMList()
Specified by:
getPIMList in interface javax.microedition.pim.PIMItem

getString

public java.lang.String getString(int arg0,
                                  int arg1)
Specified by:
getString in interface javax.microedition.pim.PIMItem

getStringArray

public java.lang.String[] getStringArray(int arg0,
                                         int arg1)
Specified by:
getStringArray in interface javax.microedition.pim.PIMItem

isModified

public boolean isModified()
Specified by:
isModified in interface javax.microedition.pim.PIMItem

maxCategories

public int maxCategories()
Specified by:
maxCategories in interface javax.microedition.pim.PIMItem

removeFromCategory

public void removeFromCategory(java.lang.String arg0)
Specified by:
removeFromCategory in interface javax.microedition.pim.PIMItem

removeValue

public void removeValue(int arg0,
                        int arg1)
Specified by:
removeValue in interface javax.microedition.pim.PIMItem

setBinary

public void setBinary(int arg0,
                      int arg1,
                      int arg2,
                      byte[] arg3,
                      int arg4,
                      int arg5)
Specified by:
setBinary in interface javax.microedition.pim.PIMItem

setBoolean

public void setBoolean(int arg0,
                       int arg1,
                       int arg2,
                       boolean arg3)
Specified by:
setBoolean in interface javax.microedition.pim.PIMItem

setDate

public void setDate(int arg0,
                    int arg1,
                    int arg2,
                    long arg3)
Specified by:
setDate in interface javax.microedition.pim.PIMItem

setInt

public void setInt(int arg0,
                   int arg1,
                   int arg2,
                   int arg3)
Specified by:
setInt in interface javax.microedition.pim.PIMItem

setString

public void setString(int arg0,
                      int arg1,
                      int arg2,
                      java.lang.String arg3)
Specified by:
setString in interface javax.microedition.pim.PIMItem

setStringArray

public void setStringArray(int arg0,
                           int arg1,
                           int arg2,
                           java.lang.String[] arg3)
Specified by:
setStringArray in interface javax.microedition.pim.PIMItem