I'm experimenting with the Test Compatability Kit (tck)
for reactive Streams, and having tested a few Publishers myself, I wanted to test an akka Source
. But in order to do so I need to convert a Source (or Source + Processor(s)) to a java.util.concurrent.Flow.Publisher
.
@Override
public Flow.Publisher<Integer> createFlowPublisher(long elements) {
return new FlowPublisher((int) elements); // <-- how to test an akka.Source?
}
class FlowPublisher implements java.util.concurrent.Flow.Publisher {
...
And I can't find anywhere how to do this.
Is there somehwere some documentation on this, or does someone know the answer by heart?