Interface GeolocationRequest
-
- All Implemented Interfaces:
public interface GeolocationRequestA 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 or respondWith.- Since:
1.1
-
-
Method Summary
Modifier and Type Method Description abstract GeolocationOptionsoptions()The options the application passed to get(... abstract booleanisPending()Whether this request still awaits a response. abstract voidrespondWith(GeolocationPosition position)Resolves the request with the given position. abstract voidrespondWith(GeolocationError error)Resolves the request with the given error. -
-
Method Detail
-
options
@Nullable() abstract GeolocationOptions options()
The options the application passed to get(...), or
null.
-
isPending
abstract boolean isPending()
Whether this request still awaits a response.
-
respondWith
abstract void respondWith(GeolocationPosition position)
Resolves the request with the given position. Throws IllegalStateException if the request was already resolved.
-
respondWith
abstract void respondWith(GeolocationError error)
Resolves the request with the given error. Throws IllegalStateException if the request was already resolved.
-
-
-
-