TestSinkStage

org.apache.pekko.stream.testkit.TestSinkStage
object TestSinkStage

Attributes

Source
TestGraphStage.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T, M](stageUnderTest: GraphStageWithMaterializedValue[SinkShape[T], M], probe: TestProbe): Sink[T, M]

Creates a sink out of the stageUnderTest that will inform the probe of operator events and callbacks by sending it the various messages found under GraphStageMessages.

Creates a sink out of the stageUnderTest that will inform the probe of operator events and callbacks by sending it the various messages found under GraphStageMessages.

This allows for creation of a "normal" stream ending with the sink while still being able to assert internal events.

Attributes

Source
TestGraphStage.scala