Package akka.testkit

Examples of akka.testkit.TestActorRef.receive()


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

TOP
Copyright © 2015 www.massapi.com. 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 coftware#gmail.com.