Requester extends AttributeStage { @Override public CompletableFuture<ClientHttpResponse> call(final Route route) { return body(null).call(route); }  @Override AttributeStage attribute(final Attribute<T> attribute, final T value); @Override QueryStage queryParam(final String name, final String value); @Override QueryStage queryParams(final Multimap<String, String> params); @Override QueryStage queryParams(final Map<String, Collection<String>> params); @Override HeaderStage accept(final MediaType acceptableMediaType, final MediaType... acceptableMediaTypes); @Override HeaderStage accept(final Collection<MediaType> acceptableMediaTypes); @Override HeaderStage contentType(final MediaType contentType); @Override HeaderStage ifModifiedSince(final OffsetDateTime since); @Override HeaderStage ifUnmodifiedSince(final OffsetDateTime since); @Override HeaderStage ifNoneMatch(final String entityTag, final String... entityTags); @Override HeaderStage ifNoneMatch(final Collection<String> entityTags); @Override HeaderStage ifMatch(final String entityTag, final String... entityTags); @Override HeaderStage ifMatch(final Collection<String> entityTags); @Override HeaderStage header(final String name, final String value); @Override HeaderStage headers(final Multimap<String, String> headers); @Override HeaderStage headers(final Map<String, ? extends Collection<String>> headers); @Override CompletableFuture<ClientHttpResponse> call(final Route route); @Override DispatchStage body(@Nullable final Entity entity); @Override DispatchStage body(@Nullable final T body);  }
@Test void shouldExpandWithoutVariables() { expectRequestTo("https: unit.get("/123") .dispatch(series(), on(SUCCESSFUL).call(pass())) .join(); }
@Test void shouldExpandOne() { expectRequestTo("https: unit.get("/{id}", 123) .dispatch(series(), on(SUCCESSFUL).call(pass())) .join(); }
@Test void shouldExpandTwo() { expectRequestTo("https: unit.get("/{parent}/{child}", 123, "456") .dispatch(series(), on(SUCCESSFUL).call(pass())) .join(); }
@Test void shouldExpandInlinedQueryParams() { expectRequestTo("https: final int postId = 123; final String filter = "new"; unit.get("https: .dispatch(series(), on(SUCCESSFUL).call(pass())) .join(); }
@Test void shouldEncodePath() { expectRequestTo( "https: unit.get("https: .dispatch(series(), on(SUCCESSFUL).call(pass())) .join(); }
@Test void shouldEncodeInlinedQueryParams() { expectRequestTo( "https: unit.get("https: "Служебная:Коллекция_книг", "Заглавная страница") .dispatch(series(), on(SUCCESSFUL).call(pass())) .join(); }