use of org.springframework.web.reactive.result.view.HttpMessageWriterView in project spring-framework by spring-projects.
the class ViewResolverRegistryTests method defaultViews.
@Test
public void defaultViews() throws Exception {
View view = new HttpMessageWriterView(new Jackson2JsonEncoder());
this.registry.defaultViews(view);
assertThat(this.registry.getDefaultViews().size()).isEqualTo(1);
assertThat(this.registry.getDefaultViews().get(0)).isSameAs(view);
}
Aggregations