Package org.akka.essentials.unittest.actors

Examples of org.akka.essentials.unittest.actors.TickTock


  public void testOne() {
    TestActorRef<TickTock> actorRef = TestActorRef.apply(new Props(
        TickTock.class), _system);

    // get access to the underlying actor object
    TickTock actor = actorRef.underlyingActor();
    // access the methods the actor object and directly pass arguments and
    // test
    actor.tock(new Tock("tock something"));
    Assert.assertTrue(actor.state);

  }
View Full Code Here

TOP

Related Classes of org.akka.essentials.unittest.actors.TickTock

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.