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

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

public class MockAlertType
extends javax.microedition.lcdui.AlertType
implements IMockObject


Field Summary
static MockMethod MTHD_PLAY_SOUND_$_DISPLAY
           
 
Fields inherited from class javax.microedition.lcdui.AlertType
ALARM, CONFIRMATION, ERROR, INFO, WARNING
 
Constructor Summary
MockAlertType()
           
MockAlertType(IInvocationHandler handler)
           
 
Method Summary
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 boolean playSound(javax.microedition.lcdui.Display arg0)
           
 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_PLAY_SOUND_$_DISPLAY

public static final MockMethod MTHD_PLAY_SOUND_$_DISPLAY
Constructor Detail

MockAlertType

public MockAlertType()

MockAlertType

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

playSound

public boolean playSound(javax.microedition.lcdui.Display arg0)
Overrides:
playSound in class javax.microedition.lcdui.AlertType