solution: integration test with two upstreams

This commit is contained in:
Igor Artamonov
2021-03-24 22:52:25 -04:00
parent be33508bb9
commit 17f14987aa
8 changed files with 130 additions and 4 deletions

View File

@@ -182,7 +182,7 @@ class FilteredApisSpec extends Specification {
.verify(Duration.ofSeconds(1))
}
def "Start with offset"() {
def "Start with offset - 5 items"() {
expect:
FilteredApis.startFrom([0, 1, 2, 3, 4], pos) == exp
where:
@@ -196,6 +196,20 @@ class FilteredApisSpec extends Specification {
6 | [1, 2, 3, 4, 0]
}
def "Start with offset - 2 items"() {
expect:
FilteredApis.startFrom([0, 1], pos) == exp
where:
pos | exp
0 | [0, 1]
1 | [1, 0]
2 | [0, 1]
3 | [1, 0]
4 | [0, 1]
5 | [1, 0]
6 | [0, 1]
}
def "Starts with standard"() {
setup:
List<Upstream> standard = (0..1).collect {