Search in sources :

Example 1 with AssociationErrorEvent

use of akka.remote.AssociationErrorEvent in project controller by opendaylight.

the class QuarantinedMonitorActorTest method testOnReceiveAnother.

@Test
public void testOnReceiveAnother() throws Exception {
    final Address local = Address.apply("http", "local");
    final Address remote = Address.apply("http", "remote");
    final Throwable t = new RuntimeException("Another exception");
    final InvalidAssociation cause = InvalidAssociation.apply(local, remote, t, Option.apply(null));
    final AssociationErrorEvent event = new AssociationErrorEvent(cause, local, remote, true, Logging.ErrorLevel());
    actor.tell(event, ActorRef.noSender());
    verify(callback, never()).apply();
}
Also used : Address(akka.actor.Address) InvalidAssociation(akka.remote.InvalidAssociation) AssociationErrorEvent(akka.remote.AssociationErrorEvent) Test(org.junit.Test)

Aggregations

Address (akka.actor.Address)1 AssociationErrorEvent (akka.remote.AssociationErrorEvent)1 InvalidAssociation (akka.remote.InvalidAssociation)1 Test (org.junit.Test)1