@Test public void search_getSearchWithFocusPoint() throws Exception { when(mock.getSearch(anyString(), anyDouble(), anyDouble())).thenReturn(new TestCall()); peliasWithMock.search("test", 1.0, 2.0, callback); verify(mock).getSearch(eq("test"), eq(1.0), eq(2.0)); }
public Call<Result> search(String query, Callback<Result> callback) { return search(query, locationProvider.getBoundingBox(), callback); }
Pelias { public Call<Result> search(String query, Callback<Result> callback) { return search(query, locationProvider.getBoundingBox(), callback); } }
Pelias { public Call<Result> search(String query, Callback<Result> callback) { return search(query, locationProvider.getBoundingBox(), callback); } Pelias();  Pelias(PeliasService service);  Pelias(String url); }
Pelias { public Call<Result> search(String query, Callback<Result> callback) { return search(query, locationProvider.getBoundingBox(), callback); } Pelias();  Pelias(PeliasService service);  Pelias(String url); void setRequestHandler(PeliasRequestHandler handler); void setEndpoint(String endpoint); void setDebug(boolean debug); Call<Result> suggest(String query, Callback<Result> callback); Call<Result> suggest(String query, String layers, String country, String sources,
      Callback<Result> callback); Call<Result> suggest(String query, double lat, double lon, Callback<Result> callback); Call<Result> search(String query, Callback<Result> callback); Call<Result> search(String query, BoundingBox box, Callback<Result> callback); Call<Result> search(String query, double lat, double lon, Callback<Result> callback); Call<Result> reverse(double lat, double lon, Callback<Result> callback); Call<Result> reverse(double lat, double lon, String sources, Callback<Result> callback); Call<Result> place(String gid, Callback<Result> callback); void setLocationProvider(PeliasLocationProvider locationProvider); String getEndpoint(); boolean getDebug(); }
Pelias { public Call<Result> search(String query, Callback<Result> callback) { return search(query, locationProvider.getBoundingBox(), callback); } Pelias();  Pelias(PeliasService service);  Pelias(String url); void setRequestHandler(PeliasRequestHandler handler); void setEndpoint(String endpoint); void setDebug(boolean debug); Call<Result> suggest(String query, Callback<Result> callback); Call<Result> suggest(String query, String layers, String country, String sources,
      Callback<Result> callback); Call<Result> suggest(String query, double lat, double lon, Callback<Result> callback); Call<Result> search(String query, Callback<Result> callback); Call<Result> search(String query, BoundingBox box, Callback<Result> callback); Call<Result> search(String query, double lat, double lon, Callback<Result> callback); Call<Result> reverse(double lat, double lon, Callback<Result> callback); Call<Result> reverse(double lat, double lon, String sources, Callback<Result> callback); Call<Result> place(String gid, Callback<Result> callback); void setLocationProvider(PeliasLocationProvider locationProvider); String getEndpoint(); boolean getDebug(); static final String DEFAULT_SEARCH_ENDPOINT; }