public class TestSourceStage$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TestSourceStage$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
TestSourceStage$() |
Modifier and Type | Method and Description |
---|---|
<T,M> Source<T,M> |
apply(GraphStageWithMaterializedValue<SourceShape<T>,M> stageUnderTest,
TestProbe probe)
Creates a source out of the
stageUnderTest that will inform the probe
of graph stage events and callbacks by sending it the various messages found under
GraphStageMessages . |
public static final TestSourceStage$ MODULE$
public <T,M> Source<T,M> apply(GraphStageWithMaterializedValue<SourceShape<T>,M> stageUnderTest, TestProbe probe)
stageUnderTest
that will inform the probe
of graph stage events and callbacks by sending it the various messages found under
GraphStageMessages
.
This allows for creation of a "normal" stream starting with the source while still being able to assert internal events.
stageUnderTest
- (undocumented)probe
- (undocumented)