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

java.lang.Object
  extended by javax.microedition.lcdui.Command
      extended by com.hammingweight.hammock.mocks.microedition.lcdui.MockCommand
All Implemented Interfaces:
IMockObject

public class MockCommand
extends javax.microedition.lcdui.Command
implements IMockObject


Field Summary
static MockMethod MTHD_GET_COMMAND_TYPE
           
static MockMethod MTHD_GET_LABEL
           
static MockMethod MTHD_GET_LONG_LABEL
           
static MockMethod MTHD_GET_PRIORITY
           
 
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)
           
 
Method Summary
 int getCommandType()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 java.lang.String getLabel()
           
 java.lang.String getLongLabel()
           
 int getPriority()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
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.

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