@Test public void testGetAllWithQuery() { final Map<String, String> queryParams = new TreeMap<>(); queryParams.put(QUERY_PARAM_2, QUERY_VALUE_2); final Request<List<Object>> request = Rest.all(RESOURCE_ROUTE_USERS).get(Object.class) .query(QUERY_PARAM_1, QUERY_VALUE_1) .query(queryParams) .request(); final String param1 = QUERY_PARAM_1 + "=" + QUERY_VALUE_1; final String param2 = QUERY_PARAM_2 + "=" + QUERY_VALUE_2; assertThat(request.getUrl(), anyOf(equalTo(GET_ALL_URL + "?" + param1 + "&" + param2), equalTo(GET_ALL_URL + "?" + param2 + "&" + param1))); assertEquals(Request.Method.GET, request.getMethod()); }
@NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } private  Rest(); }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } private  Rest(); static void setBaseUrl(@NonNull final String baseUrl); static void setGson(@NonNull final Gson gson); static void setInterceptor(@Nullable final RequestInterceptor interceptor); static void setElementsKey(@Nullable final String elementsKey); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id,
			@NonNull final Gson gson); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route,
			@NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson); }
Rest { @NonNull public static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route) { return all(route, gson); } private  Rest(); static void setBaseUrl(@NonNull final String baseUrl); static void setGson(@NonNull final Gson gson); static void setInterceptor(@Nullable final RequestInterceptor interceptor); static void setElementsKey(@Nullable final String elementsKey); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, final int id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route); @NonNull static UrlBuilder.ElementUrlBuilder one(@NonNull final String route, @NonNull final String id,
			@NonNull final Gson gson); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.ElementUrlBuilder oneUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route); @NonNull static UrlBuilder.CollectionUrlBuilder all(@NonNull final String route,
			@NonNull final Gson gson); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url); @NonNull static UrlBuilder.CollectionUrlBuilder allUrl(@NonNull final String route,
			@NonNull final String url, @NonNull final Gson gson);  }