-
Notifications
You must be signed in to change notification settings - Fork 471
WebClient + PagedResources Support #741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rwinch If you have any guidance on how to interrogate a I starting drafting @Test
public void registersHttpMessageConvertersForWebClient() {
withContext(WebClientHalConfig.class, context -> {
WebClient client = context.getBean(WebClient.class)
.mutate()
.exchangeStrategies(ExchangeStrategies.withDefaults())
.build();
assertThat(1).isEqualTo(1);
});
}
@Configuration
@EnableHypermediaSupport(type = HypermediaType.HAL)
@EnableWebMvc
static class WebClientHalConfig {
@Bean
public WebClient webClient() {
return WebClient.create();
}
} But..there is little to assert against due to the highly encapsulated nature of |
Sorry...I'm not sure I understand what you are asking? Can you rephrase your question please? |
The An alternative would be to point at some mock server and see if it deserializes a document correctly. But I was hoping to not go there for a unit test. |
Unfortunately I don't have any alternatives for you. Spring Framework typically points to a |
Follow the progress of #728. |
Resolved via #728. |
Right now it does not appear that there is
WebClient
andPagedResources
support. I'd like Hateoas to provide the proper integration and Boot (create a separate ticket if necessary) to integrate this into the defaultWebClient.Builder
.If I try and retrieve
PagedResources
the content is empty even if there is content.Here is the body
Here is
Message
Finally
MessageRepository
Here is a complete sample to demonstrate the issue https://github.com/rwinch/spring-hateoas-webclient/blob/master/src/test/java/sample/springhateoaswebclient/SpringHateoasWebclientApplicationTests.java#L56
The text was updated successfully, but these errors were encountered: