com.hammingweight.hammock.mocks.microedition.location
Class MockOrientation

java.lang.Object
  extended by javax.microedition.location.Orientation
      extended by com.hammingweight.hammock.mocks.microedition.location.MockOrientation
All Implemented Interfaces:
IMockObject

public class MockOrientation
extends javax.microedition.location.Orientation
implements IMockObject


Field Summary
static MockMethod MTHD_GET_COMPASS_AZIMUTH
           
static MockMethod MTHD_GET_PITCH
           
static MockMethod MTHD_GET_ROLL
           
static MockMethod MTHD_IS_ORIENTATION_MAGNETIC
           
 
Constructor Summary
MockOrientation(float arg0, boolean arg1, float arg2, float arg3)
           
MockOrientation(float arg0, boolean arg1, float arg2, float arg3, IInvocationHandler handler)
           
 
Method Summary
 float getCompassAzimuth()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 float getPitch()
           
 float getRoll()
           
 boolean isOrientationMagnetic()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 
Methods inherited from class javax.microedition.location.Orientation
getOrientation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_COMPASS_AZIMUTH

public static final MockMethod MTHD_GET_COMPASS_AZIMUTH

MTHD_GET_PITCH

public static final MockMethod MTHD_GET_PITCH

MTHD_GET_ROLL

public static final MockMethod MTHD_GET_ROLL

MTHD_IS_ORIENTATION_MAGNETIC

public static final MockMethod MTHD_IS_ORIENTATION_MAGNETIC
Constructor Detail

MockOrientation

public MockOrientation(float arg0,
                       boolean arg1,
                       float arg2,
                       float arg3)

MockOrientation

public MockOrientation(float arg0,
                       boolean arg1,
                       float arg2,
                       float 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.

getCompassAzimuth

public float getCompassAzimuth()
Overrides:
getCompassAzimuth in class javax.microedition.location.Orientation

getPitch

public float getPitch()
Overrides:
getPitch in class javax.microedition.location.Orientation

getRoll

public float getRoll()
Overrides:
getRoll in class javax.microedition.location.Orientation

isOrientationMagnetic

public boolean isOrientationMagnetic()
Overrides:
isOrientationMagnetic in class javax.microedition.location.Orientation