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

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

public class MockLocation
extends javax.microedition.location.Location
implements IMockObject


Field Summary
static MockMethod MTHD_GET_ADDRESS_INFO
           
static MockMethod MTHD_GET_COURSE
           
static MockMethod MTHD_GET_EXTRA_INFO_$_STRING
           
static MockMethod MTHD_GET_LOCATION_METHOD
           
static MockMethod MTHD_GET_QUALIFIED_COORDINATES
           
static MockMethod MTHD_GET_SPEED
           
static MockMethod MTHD_GET_TIMESTAMP
           
static MockMethod MTHD_IS_VALID
           
 
Fields inherited from class javax.microedition.location.Location
MTA_ASSISTED, MTA_UNASSISTED, MTE_ANGLEOFARRIVAL, MTE_CELLID, MTE_SATELLITE, MTE_SHORTRANGE, MTE_TIMEDIFFERENCE, MTE_TIMEOFARRIVAL, MTY_NETWORKBASED, MTY_TERMINALBASED
 
Constructor Summary
MockLocation()
           
MockLocation(IInvocationHandler handler)
           
 
Method Summary
 javax.microedition.location.AddressInfo getAddressInfo()
           
 float getCourse()
           
 java.lang.String getExtraInfo(java.lang.String arg0)
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 int getLocationMethod()
           
 javax.microedition.location.QualifiedCoordinates getQualifiedCoordinates()
           
 float getSpeed()
           
 long getTimestamp()
           
 boolean isValid()
           
 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_ADDRESS_INFO

public static final MockMethod MTHD_GET_ADDRESS_INFO

MTHD_GET_COURSE

public static final MockMethod MTHD_GET_COURSE

MTHD_GET_EXTRA_INFO_$_STRING

public static final MockMethod MTHD_GET_EXTRA_INFO_$_STRING

MTHD_GET_LOCATION_METHOD

public static final MockMethod MTHD_GET_LOCATION_METHOD

MTHD_GET_QUALIFIED_COORDINATES

public static final MockMethod MTHD_GET_QUALIFIED_COORDINATES

MTHD_GET_SPEED

public static final MockMethod MTHD_GET_SPEED

MTHD_GET_TIMESTAMP

public static final MockMethod MTHD_GET_TIMESTAMP

MTHD_IS_VALID

public static final MockMethod MTHD_IS_VALID
Constructor Detail

MockLocation

public MockLocation()

MockLocation

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

getAddressInfo

public javax.microedition.location.AddressInfo getAddressInfo()
Overrides:
getAddressInfo in class javax.microedition.location.Location

getCourse

public float getCourse()
Overrides:
getCourse in class javax.microedition.location.Location

getExtraInfo

public java.lang.String getExtraInfo(java.lang.String arg0)
Overrides:
getExtraInfo in class javax.microedition.location.Location

getLocationMethod

public int getLocationMethod()
Overrides:
getLocationMethod in class javax.microedition.location.Location

getQualifiedCoordinates

public javax.microedition.location.QualifiedCoordinates getQualifiedCoordinates()
Overrides:
getQualifiedCoordinates in class javax.microedition.location.Location

getSpeed

public float getSpeed()
Overrides:
getSpeed in class javax.microedition.location.Location

getTimestamp

public long getTimestamp()
Overrides:
getTimestamp in class javax.microedition.location.Location

isValid

public boolean isValid()
Overrides:
isValid in class javax.microedition.location.Location