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();
}
Aggregations