We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f1d616 commit aa91c35Copy full SHA for aa91c35
src/test/java/seatsio/charts/ListChartsTest.java
@@ -4,6 +4,7 @@
4
import seatsio.SeatsioClientTest;
5
import seatsio.events.Event;
6
7
+import java.util.List;
8
import java.util.stream.Stream;
9
10
import static org.assertj.core.api.Assertions.assertThat;
@@ -86,4 +87,17 @@ public void expand() {
86
87
.containsExactly(event2.id, event1.id);
88
}
89
90
+ @Test
91
+ public void pageSize() {
92
+ Chart chart1 = client.charts.create();
93
+ Chart chart2 = client.charts.create();
94
+ Chart chart3 = client.charts.create();
95
+
96
+ List<Chart> charts = client.charts.listFirstPage(new ChartListParams().withPageSize(2)).items;
97
98
+ assertThat(charts)
99
+ .extracting(chart -> chart.key)
100
+ .containsExactly(chart3.key, chart2.key);
101
+ }
102
103
0 commit comments