com.hammingweight.hammock.mocks.microedition.lcdui
Class MockChoice

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.microedition.lcdui.MockChoice
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.microedition.lcdui.Choice

public class MockChoice
extends AMockObject
implements javax.microedition.lcdui.Choice


Field Summary
static MockMethod MTHD_APPEND_$_STRING_IMAGE
           
static MockMethod MTHD_DELETE_$_INT
           
static MockMethod MTHD_DELETE_ALL
           
static MockMethod MTHD_GET_FIT_POLICY
           
static MockMethod MTHD_GET_FONT_$_INT
           
static MockMethod MTHD_GET_IMAGE_$_INT
           
static MockMethod MTHD_GET_SELECTED_FLAGS_$_ARRAY_BOOLEAN
           
static MockMethod MTHD_GET_SELECTED_INDEX
           
static MockMethod MTHD_GET_STRING_$_INT
           
static MockMethod MTHD_INSERT_$_INT_STRING_IMAGE
           
static MockMethod MTHD_IS_SELECTED_$_INT
           
static MockMethod MTHD_SET_$_INT_STRING_IMAGE
           
static MockMethod MTHD_SET_FIT_POLICY_$_INT
           
static MockMethod MTHD_SET_FONT_$_INT_FONT
           
static MockMethod MTHD_SET_SELECTED_FLAGS_$_ARRAY_BOOLEAN
           
static MockMethod MTHD_SET_SELECTED_INDEX_$_INT_BOOLEAN
           
static MockMethod MTHD_SIZE
           
 
Fields inherited from interface javax.microedition.lcdui.Choice
EXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ON
 
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
MockChoice()
           
MockChoice(IInvocationHandler handler)
           
 
Method Summary
 int append(java.lang.String arg0, javax.microedition.lcdui.Image arg1)
           
 void delete(int arg0)
           
 void deleteAll()
           
 int getFitPolicy()
           
 javax.microedition.lcdui.Font getFont(int arg0)
           
 javax.microedition.lcdui.Image getImage(int arg0)
           
 int getSelectedFlags(boolean[] arg0)
           
 int getSelectedIndex()
           
 java.lang.String getString(int arg0)
           
 void insert(int arg0, java.lang.String arg1, javax.microedition.lcdui.Image arg2)
           
 boolean isSelected(int arg0)
           
 void set(int arg0, java.lang.String arg1, javax.microedition.lcdui.Image arg2)
           
 void setFitPolicy(int arg0)
           
 void setFont(int arg0, javax.microedition.lcdui.Font arg1)
           
 void setSelectedFlags(boolean[] arg0)
           
 void setSelectedIndex(int arg0, boolean arg1)
           
 int size()
           
 
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_APPEND_$_STRING_IMAGE

public static final MockMethod MTHD_APPEND_$_STRING_IMAGE

MTHD_DELETE_$_INT

public static final MockMethod MTHD_DELETE_$_INT

MTHD_DELETE_ALL

public static final MockMethod MTHD_DELETE_ALL

MTHD_GET_FIT_POLICY

public static final MockMethod MTHD_GET_FIT_POLICY

MTHD_GET_FONT_$_INT

public static final MockMethod MTHD_GET_FONT_$_INT

MTHD_GET_IMAGE_$_INT

public static final MockMethod MTHD_GET_IMAGE_$_INT

MTHD_GET_SELECTED_FLAGS_$_ARRAY_BOOLEAN

public static final MockMethod MTHD_GET_SELECTED_FLAGS_$_ARRAY_BOOLEAN

MTHD_GET_SELECTED_INDEX

public static final MockMethod MTHD_GET_SELECTED_INDEX

MTHD_GET_STRING_$_INT

public static final MockMethod MTHD_GET_STRING_$_INT

MTHD_INSERT_$_INT_STRING_IMAGE

public static final MockMethod MTHD_INSERT_$_INT_STRING_IMAGE

MTHD_IS_SELECTED_$_INT

public static final MockMethod MTHD_IS_SELECTED_$_INT

MTHD_SET_$_INT_STRING_IMAGE

public static final MockMethod MTHD_SET_$_INT_STRING_IMAGE

MTHD_SET_FIT_POLICY_$_INT

public static final MockMethod MTHD_SET_FIT_POLICY_$_INT

MTHD_SET_FONT_$_INT_FONT

public static final MockMethod MTHD_SET_FONT_$_INT_FONT

MTHD_SET_SELECTED_FLAGS_$_ARRAY_BOOLEAN

public static final MockMethod MTHD_SET_SELECTED_FLAGS_$_ARRAY_BOOLEAN

MTHD_SET_SELECTED_INDEX_$_INT_BOOLEAN

public static final MockMethod MTHD_SET_SELECTED_INDEX_$_INT_BOOLEAN

MTHD_SIZE

public static final MockMethod MTHD_SIZE
Constructor Detail

MockChoice

public MockChoice()

MockChoice

public MockChoice(IInvocationHandler handler)
Method Detail

append

public int append(java.lang.String arg0,
                  javax.microedition.lcdui.Image arg1)
Specified by:
append in interface javax.microedition.lcdui.Choice

delete

public void delete(int arg0)
Specified by:
delete in interface javax.microedition.lcdui.Choice

deleteAll

public void deleteAll()
Specified by:
deleteAll in interface javax.microedition.lcdui.Choice

getFitPolicy

public int getFitPolicy()
Specified by:
getFitPolicy in interface javax.microedition.lcdui.Choice

getFont

public javax.microedition.lcdui.Font getFont(int arg0)
Specified by:
getFont in interface javax.microedition.lcdui.Choice

getImage

public javax.microedition.lcdui.Image getImage(int arg0)
Specified by:
getImage in interface javax.microedition.lcdui.Choice

getSelectedFlags

public int getSelectedFlags(boolean[] arg0)
Specified by:
getSelectedFlags in interface javax.microedition.lcdui.Choice

getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in interface javax.microedition.lcdui.Choice

getString

public java.lang.String getString(int arg0)
Specified by:
getString in interface javax.microedition.lcdui.Choice

insert

public void insert(int arg0,
                   java.lang.String arg1,
                   javax.microedition.lcdui.Image arg2)
Specified by:
insert in interface javax.microedition.lcdui.Choice

isSelected

public boolean isSelected(int arg0)
Specified by:
isSelected in interface javax.microedition.lcdui.Choice

set

public void set(int arg0,
                java.lang.String arg1,
                javax.microedition.lcdui.Image arg2)
Specified by:
set in interface javax.microedition.lcdui.Choice

setFitPolicy

public void setFitPolicy(int arg0)
Specified by:
setFitPolicy in interface javax.microedition.lcdui.Choice

setFont

public void setFont(int arg0,
                    javax.microedition.lcdui.Font arg1)
Specified by:
setFont in interface javax.microedition.lcdui.Choice

setSelectedFlags

public void setSelectedFlags(boolean[] arg0)
Specified by:
setSelectedFlags in interface javax.microedition.lcdui.Choice

setSelectedIndex

public void setSelectedIndex(int arg0,
                             boolean arg1)
Specified by:
setSelectedIndex in interface javax.microedition.lcdui.Choice

size

public int size()
Specified by:
size in interface javax.microedition.lcdui.Choice