com.hammingweight.hammock.mocks.microedition.location
Class MockCriteria
java.lang.Object
javax.microedition.location.Criteria
com.hammingweight.hammock.mocks.microedition.location.MockCriteria
- All Implemented Interfaces:
- IMockObject
public class MockCriteria
- extends javax.microedition.location.Criteria
- implements IMockObject
Fields inherited from class javax.microedition.location.Criteria |
NO_REQUIREMENT, POWER_USAGE_HIGH, POWER_USAGE_LOW, POWER_USAGE_MEDIUM |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTHD_GET_HORIZONTAL_ACCURACY
public static final MockMethod MTHD_GET_HORIZONTAL_ACCURACY
MTHD_GET_PREFERRED_POWER_CONSUMPTION
public static final MockMethod MTHD_GET_PREFERRED_POWER_CONSUMPTION
MTHD_GET_PREFERRED_RESPONSE_TIME
public static final MockMethod MTHD_GET_PREFERRED_RESPONSE_TIME
MTHD_GET_VERTICAL_ACCURACY
public static final MockMethod MTHD_GET_VERTICAL_ACCURACY
MTHD_IS_ADDRESS_INFO_REQUIRED
public static final MockMethod MTHD_IS_ADDRESS_INFO_REQUIRED
MTHD_IS_ALLOWED_TO_COST
public static final MockMethod MTHD_IS_ALLOWED_TO_COST
MTHD_IS_ALTITUDE_REQUIRED
public static final MockMethod MTHD_IS_ALTITUDE_REQUIRED
MTHD_IS_SPEED_AND_COURSE_REQUIRED
public static final MockMethod MTHD_IS_SPEED_AND_COURSE_REQUIRED
MTHD_SET_ADDRESS_INFO_REQUIRED_$_BOOLEAN
public static final MockMethod MTHD_SET_ADDRESS_INFO_REQUIRED_$_BOOLEAN
MTHD_SET_ALTITUDE_REQUIRED_$_BOOLEAN
public static final MockMethod MTHD_SET_ALTITUDE_REQUIRED_$_BOOLEAN
MTHD_SET_COST_ALLOWED_$_BOOLEAN
public static final MockMethod MTHD_SET_COST_ALLOWED_$_BOOLEAN
MTHD_SET_HORIZONTAL_ACCURACY_$_INT
public static final MockMethod MTHD_SET_HORIZONTAL_ACCURACY_$_INT
MTHD_SET_PREFERRED_POWER_CONSUMPTION_$_INT
public static final MockMethod MTHD_SET_PREFERRED_POWER_CONSUMPTION_$_INT
MTHD_SET_PREFERRED_RESPONSE_TIME_$_INT
public static final MockMethod MTHD_SET_PREFERRED_RESPONSE_TIME_$_INT
MTHD_SET_SPEED_AND_COURSE_REQUIRED_$_BOOLEAN
public static final MockMethod MTHD_SET_SPEED_AND_COURSE_REQUIRED_$_BOOLEAN
MTHD_SET_VERTICAL_ACCURACY_$_INT
public static final MockMethod MTHD_SET_VERTICAL_ACCURACY_$_INT
MockCriteria
public MockCriteria()
MockCriteria
public MockCriteria(IInvocationHandler handler)
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.
getHorizontalAccuracy
public int getHorizontalAccuracy()
- Overrides:
getHorizontalAccuracy
in class javax.microedition.location.Criteria
getPreferredPowerConsumption
public int getPreferredPowerConsumption()
- Overrides:
getPreferredPowerConsumption
in class javax.microedition.location.Criteria
getPreferredResponseTime
public int getPreferredResponseTime()
- Overrides:
getPreferredResponseTime
in class javax.microedition.location.Criteria
getVerticalAccuracy
public int getVerticalAccuracy()
- Overrides:
getVerticalAccuracy
in class javax.microedition.location.Criteria
isAddressInfoRequired
public boolean isAddressInfoRequired()
- Overrides:
isAddressInfoRequired
in class javax.microedition.location.Criteria
isAllowedToCost
public boolean isAllowedToCost()
- Overrides:
isAllowedToCost
in class javax.microedition.location.Criteria
isAltitudeRequired
public boolean isAltitudeRequired()
- Overrides:
isAltitudeRequired
in class javax.microedition.location.Criteria
isSpeedAndCourseRequired
public boolean isSpeedAndCourseRequired()
- Overrides:
isSpeedAndCourseRequired
in class javax.microedition.location.Criteria
setAddressInfoRequired
public void setAddressInfoRequired(boolean arg0)
- Overrides:
setAddressInfoRequired
in class javax.microedition.location.Criteria
setAltitudeRequired
public void setAltitudeRequired(boolean arg0)
- Overrides:
setAltitudeRequired
in class javax.microedition.location.Criteria
setCostAllowed
public void setCostAllowed(boolean arg0)
- Overrides:
setCostAllowed
in class javax.microedition.location.Criteria
setHorizontalAccuracy
public void setHorizontalAccuracy(int arg0)
- Overrides:
setHorizontalAccuracy
in class javax.microedition.location.Criteria
setPreferredPowerConsumption
public void setPreferredPowerConsumption(int arg0)
- Overrides:
setPreferredPowerConsumption
in class javax.microedition.location.Criteria
setPreferredResponseTime
public void setPreferredResponseTime(int arg0)
- Overrides:
setPreferredResponseTime
in class javax.microedition.location.Criteria
setSpeedAndCourseRequired
public void setSpeedAndCourseRequired(boolean arg0)
- Overrides:
setSpeedAndCourseRequired
in class javax.microedition.location.Criteria
setVerticalAccuracy
public void setVerticalAccuracy(int arg0)
- Overrides:
setVerticalAccuracy
in class javax.microedition.location.Criteria