Test pipeTo self


Does anyone how to test pipeTo self in an actor?

I have an actor upon receiving initial message do different steps of processing by sending messages to self.

In ,my test I am sending the initial message but not sure how to test different stages.

By the way this actor use another actor to have work done and last message is PoisonPill.



I would recommend not testing the internal messaging in the actor. Instead you could consider providing a TestProbe.ref to test the communication with that “other actor”?