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

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

public class MockLocationProvider
extends javax.microedition.location.LocationProvider
implements IMockObject


Field Summary
static MockMethod MTHD_GET_LOCATION_$_INT
           
static MockMethod MTHD_GET_STATE
           
static MockMethod MTHD_RESET
           
static MockMethod MTHD_SET_LOCATION_LISTENER_$_LOCATIONLISTENER_INT_INT_INT
           
 
Fields inherited from class javax.microedition.location.LocationProvider
AVAILABLE, OUT_OF_SERVICE, TEMPORARILY_UNAVAILABLE
 
Constructor Summary
MockLocationProvider()
           
MockLocationProvider(IInvocationHandler handler)
           
 
Method Summary
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 javax.microedition.location.Location getLocation(int arg0)
           
 int getState()
           
 void reset()
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setLocationListener(javax.microedition.location.LocationListener arg0, int arg1, int arg2, int arg3)
           
 
Methods inherited from class javax.microedition.location.LocationProvider
addProximityListener, getInstance, getLastKnownLocation, removeProximityListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_GET_LOCATION_$_INT

public static final MockMethod MTHD_GET_LOCATION_$_INT

MTHD_GET_STATE

public static final MockMethod MTHD_GET_STATE

MTHD_RESET

public static final MockMethod MTHD_RESET

MTHD_SET_LOCATION_LISTENER_$_LOCATIONLISTENER_INT_INT_INT

public static final MockMethod MTHD_SET_LOCATION_LISTENER_$_LOCATIONLISTENER_INT_INT_INT
Constructor Detail

MockLocationProvider

public MockLocationProvider()

MockLocationProvider

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

getLocation

public javax.microedition.location.Location getLocation(int arg0)
                                                 throws javax.microedition.location.LocationException,
                                                        java.lang.InterruptedException
Specified by:
getLocation in class javax.microedition.location.LocationProvider
Throws:
javax.microedition.location.LocationException
java.lang.InterruptedException

getState

public int getState()
Specified by:
getState in class javax.microedition.location.LocationProvider

reset

public void reset()
Specified by:
reset in class javax.microedition.location.LocationProvider

setLocationListener

public void setLocationListener(javax.microedition.location.LocationListener arg0,
                                int arg1,
                                int arg2,
                                int arg3)
Specified by:
setLocationListener in class javax.microedition.location.LocationProvider