Package akka.testkit

Examples of akka.testkit.TestActorRef


  }

  @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

Related Classes of akka.testkit.TestActorRef

Copyright © 2018 www.massapicom. 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.