Package akka.testkit

Examples of akka.testkit.TestActorRef.receive()

  public void testBoomActor() {
    final TestActorRef child = TestActorRef.apply(
        new Props(BoomActor.class), _system);
    try {
      child.receive("do something");
      // should not reach here
    } catch (IllegalArgumentException e) {
      Assert.assertEquals(e.getMessage(), "boom!");
View Full Code Here

Copyright © 2018 All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact