JavaTestKit.getLastSender
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using akka.testkit.JavaTestKit.getLastSender (Showing top 1 results out of 315)

origin: stackoverflow.com

 ActorSystem system = ActorSystem.create();

new JavaTestKit( system )
{{
 final JavaTestKit probe = new JavaTestKit( system );
 final Props props = Props.create( SupervisorActor.class );

 final TestActorRef<SupervisorActor> supervisorActor =
  TestActorRef.create( system, props, "Superman" );

 supervisorActor.tell( callCommand, getTestActor() );

 probe.expectMsgEquals(42);
 assertEquals(getRef(), probe.getLastSender());
}};
akka.testkitJavaTestKitgetLastSender

Popular methods of JavaTestKit

  • shutdownActorSystem
    Shut down an actor system and wait for termination. On failure debug output will be logged about the
  • dilated
  • expectTerminated
    Assert that the given ActorRef is Terminated within the specified time. Don't forget to 'watch' it f
  • getSystem
  • getTestActor
    ActorRef of the test actor. Access is provided to enable e.g. registration as message target.
  • shutdown
    Shut down an actor system and wait for termination. On failure debug output will be logged about the
  • <init>
  • expectMsgEquals
    Receive one message from the test actor and assert that it equals the given object. Wait time is bou
  • getRef
    Shorthand to get the testActor.
  • setAutoPilot
    Install an AutoPilot to drive the testActor: the AutoPilot will be run for each received message and

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)