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 Details

    • options

      @Nullable GeolocationOptions options()
      The options the application passed to get(...), or null.
    • isPending

      boolean isPending()
      Whether this request still awaits a response.
    • respondWith

      void respondWith(GeolocationPosition position)
      Resolves the request with the given position. Throws IllegalStateException if the request was already resolved.
    • respondWith

      void respondWith(GeolocationError error)
      Resolves the request with the given error. Throws IllegalStateException if the request was already resolved.