Package org.apache.pekko.stream.testkit
Class TestSinkStage$
java.lang.Object
org.apache.pekko.stream.testkit.TestSinkStage$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TestSinkStage$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T,M> Sink<T, M> apply(GraphStageWithMaterializedValue<SinkShape<T>, M> stageUnderTest, TestProbe probe) Creates a sink out of thestageUnderTestthat will inform theprobeof operator events and callbacks by sending it the various messages found underGraphStageMessages.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
TestSinkStage$
public TestSinkStage$()
-
-
Method Details
-
apply
public <T,M> Sink<T,M> apply(GraphStageWithMaterializedValue<SinkShape<T>, M> stageUnderTest, TestProbe probe) Creates a sink out of thestageUnderTestthat will inform theprobeof operator events and callbacks by sending it the various messages found underGraphStageMessages.This allows for creation of a "normal" stream ending with the sink while still being able to assert internal events.
-