Expose assertAllStagesStopped

This commit is contained in:
Martynas Mickevičius 2018-06-15 18:16:58 +03:00
parent 28746a4cfe
commit 766944a592
No known key found for this signature in database
GPG key ID: E735DF276C508071
107 changed files with 263 additions and 85 deletions

View file

@ -8,6 +8,7 @@ import akka.Done;
import akka.NotUsed;
import akka.actor.ActorRef;
import akka.actor.Cancellable;
import akka.actor.Status;
import akka.japi.Pair;
import akka.japi.function.*;
import akka.japi.pf.PFBuilder;
@ -446,6 +447,7 @@ public class SourceTest extends StreamTest {
probe.expectNoMessage(Duration.ofMillis(200));
probe.expectMsgEquals("tick");
probe.expectNoMessage(Duration.ofMillis(200));
cancellable.cancel();
}
@Test
@ -547,6 +549,7 @@ public class SourceTest extends StreamTest {
probe.expectMsgEquals(1);
ref.tell(2, ActorRef.noSender());
probe.expectMsgEquals(2);
ref.tell(new Status.Success("ok"), ActorRef.noSender());
}
@Test