Search in sources :

Example 6 with ISpringWebFluxContext

use of org.thymeleaf.spring5.context.webflux.ISpringWebFluxContext in project thymeleaf-tests by thymeleaf.

the class Spring5Reactive09Test method testFullFormBean.

@Test
public void testFullFormBean() throws Exception {
    final Album album = new Album(100, "Whatever");
    final Map<String, Object> model = new HashMap<String, Object>();
    model.put("album", album);
    final ISpringWebFluxContext context = ReactiveTestUtils.buildReactiveContext(model, new TestingRequestDataValueProcessor());
    testTemplate("reactive09", null, context, "reactive09-02");
}
Also used : HashMap(java.util.HashMap) Album(org.thymeleaf.spring5.reactive.data.Album) ISpringWebFluxContext(org.thymeleaf.spring5.context.webflux.ISpringWebFluxContext) Test(org.junit.Test)

Aggregations

HashMap (java.util.HashMap)5 ISpringWebFluxContext (org.thymeleaf.spring5.context.webflux.ISpringWebFluxContext)5 Test (org.junit.Test)4 Album (org.thymeleaf.spring5.reactive.data.Album)4 ServerWebExchange (org.springframework.web.server.ServerWebExchange)2 TestingServerWebExchange (org.thymeleaf.spring5.reactive.exchange.TestingServerWebExchange)2 DataBuffer (org.springframework.core.io.buffer.DataBuffer)1 ServerHttpResponse (org.springframework.http.server.reactive.ServerHttpResponse)1 RequestContext (org.springframework.web.reactive.result.view.RequestContext)1 TemplateProcessingException (org.thymeleaf.exceptions.TemplateProcessingException)1 SpringWebFluxThymeleafRequestContext (org.thymeleaf.spring5.context.webflux.SpringWebFluxThymeleafRequestContext)1 TestingSpringWebFluxContext (org.thymeleaf.spring5.reactive.context.TestingSpringWebFluxContext)1 TestingServerHttpResponse (org.thymeleaf.spring5.reactive.exchange.TestingServerHttpResponse)1 TestingMessageSource (org.thymeleaf.spring5.reactive.messagesource.TestingMessageSource)1 ThymeleafReactiveView (org.thymeleaf.spring5.view.reactive.ThymeleafReactiveView)1