use of org.opendaylight.controller.cluster.raft.utils.MessageCollectorActor in project controller by opendaylight.
the class ShardTest method testServerRemoved.
@Test
public void testServerRemoved() throws Exception {
final TestActorRef<MessageCollectorActor> parent = actorFactory.createTestActor(MessageCollectorActor.props().withDispatcher(Dispatchers.DefaultDispatcherId()));
final ActorRef shard = parent.underlyingActor().context().actorOf(newShardBuilder().props().withDispatcher(Dispatchers.DefaultDispatcherId()), "testServerRemoved");
shard.tell(new ServerRemoved("test"), ActorRef.noSender());
MessageCollectorActor.expectFirstMatching(parent, ServerRemoved.class);
}
Aggregations