Interface GeolocationRequest
public interface GeolocationRequest
A pending one-shot
Geolocation.get(...) request observed by the test
controller. Tests can inspect the options() the facade was called
with, and resolve the request manually via
respondWith(GeolocationPosition) or
respondWith(GeolocationError).-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this request still awaits a response.@Nullable GeolocationOptionsoptions()The options the application passed to get(...), ornull.voidrespondWith(GeolocationError error) Resolves the request with the given error.voidrespondWith(GeolocationPosition position) Resolves the request with the given position.
-
Method Details
-
options
@Nullable GeolocationOptions options()The options the application passed to get(...), ornull. -
isPending
boolean isPending()Whether this request still awaits a response. -
respondWith
Resolves the request with the given position. ThrowsIllegalStateExceptionif the request was already resolved. -
respondWith
Resolves the request with the given error. ThrowsIllegalStateExceptionif the request was already resolved.
-