com.hammingweight.hammock.mocks.microedition.lcdui
Class MockCommand
java.lang.Object
javax.microedition.lcdui.Command
com.hammingweight.hammock.mocks.microedition.lcdui.MockCommand
- All Implemented Interfaces:
- IMockObject
public class MockCommand
- extends javax.microedition.lcdui.Command
- implements IMockObject
Fields inherited from class javax.microedition.lcdui.Command |
BACK, CANCEL, EXIT, HELP, ITEM, OK, SCREEN, STOP |
Constructor Summary |
MockCommand(java.lang.String arg0,
int arg1,
int arg2)
|
MockCommand(java.lang.String arg0,
int arg1,
int arg2,
IInvocationHandler handler)
|
MockCommand(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3)
|
MockCommand(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3,
IInvocationHandler handler)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTHD_GET_COMMAND_TYPE
public static final MockMethod MTHD_GET_COMMAND_TYPE
MTHD_GET_LABEL
public static final MockMethod MTHD_GET_LABEL
MTHD_GET_LONG_LABEL
public static final MockMethod MTHD_GET_LONG_LABEL
MTHD_GET_PRIORITY
public static final MockMethod MTHD_GET_PRIORITY
MockCommand
public MockCommand(java.lang.String arg0,
int arg1,
int arg2)
MockCommand
public MockCommand(java.lang.String arg0,
int arg1,
int arg2,
IInvocationHandler handler)
MockCommand
public MockCommand(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3)
MockCommand
public MockCommand(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3,
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.
getCommandType
public int getCommandType()
- Overrides:
getCommandType
in class javax.microedition.lcdui.Command
getLabel
public java.lang.String getLabel()
- Overrides:
getLabel
in class javax.microedition.lcdui.Command
getLongLabel
public java.lang.String getLongLabel()
- Overrides:
getLongLabel
in class javax.microedition.lcdui.Command
getPriority
public int getPriority()
- Overrides:
getPriority
in class javax.microedition.lcdui.Command