I have this interface:
interface PageRepository {
fun findAll(): Flux<Flux<Page>>
}
And I want to test its implementation but I'm getting:
java.lang.AssertionError: expectation "expectNext(FluxIterable)" failed (expected value: FluxIterable; actual value: UnicastProcessor)
In the test I'm using expectNext()
:
repository
.findAll()
.test()
.expectSubscription()
.expectNext(listOf(page(PATH_1), page(PATH_2)).toFlux())
.expectNext(listOf(page(PATH_3), page(PATH_4)).toFlux())
.expectNext(listOf(page(PATH_5)).toFlux())
.verifyComplete()
What I'm missing