use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive10Test method testDataDrivenOne04.
@Test
public void testDataDrivenOne04() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums).take(1), 7));
testTemplate("reactive10", null, ctx1, "reactive10-03");
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive10Test method testDataDrivenTwo05.
@Test
public void testDataDrivenTwo05() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums).take(2), 11));
testTemplate("reactive10", null, ctx1, "reactive10-04");
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive10Test method testDataDrivenTwo01.
@Test
public void testDataDrivenTwo01() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums).take(2), 1));
testTemplate("reactive10", null, ctx1, "reactive10-04");
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive10Test method testDataDrivenLarge04.
@Test
public void testDataDrivenLarge04() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums), 7));
testTemplate("reactive10", null, ctx1, "reactive10-02");
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive11Test method testDataDrivenLarge04.
@Test
public void testDataDrivenLarge04() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums), 7));
testTemplate("reactive11", null, ctx1, "reactive11-02", true);
}
Aggregations