use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive11Test method testDataDrivenOne03.
@Test
public void testDataDrivenOne03() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums).take(1), 3));
testTemplate("reactive11", null, ctx1, "reactive11-03", true);
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive11Test method testDataDrivenTwo03.
@Test
public void testDataDrivenTwo03() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums).take(2), 3));
testTemplate("reactive11", null, ctx1, "reactive11-04", true);
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive11Test method testDataDrivenLarge02.
@Test
public void testDataDrivenLarge02() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums), 2));
testTemplate("reactive11", null, ctx1, "reactive11-02", true);
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive11Test method testDataDrivenLarge03.
@Test
public void testDataDrivenLarge03() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums), 3));
testTemplate("reactive11", null, ctx1, "reactive11-02", true);
}
use of org.thymeleaf.spring5.context.webflux.ReactiveDataDriverContextVariable in project thymeleaf-tests by thymeleaf.
the class Spring5Reactive11Test method testDataDrivenLarge07.
@Test
public void testDataDrivenLarge07() throws Exception {
final List<Album> albums = AlbumRepository.findAllAlbums();
final Context ctx1 = new Context();
ctx1.setVariable("albums", new ReactiveDataDriverContextVariable(Flux.fromIterable(albums), 1024));
testTemplate("reactive11", null, ctx1, "reactive11-02", true);
}
Aggregations