@Test public void testDataChangedWithNoSender() { final DataTreeCandidate mockTreeCandidate = mock(DataTreeCandidate.class); final ImmutableList<DataTreeCandidate> mockCandidates = ImmutableList.of(mockTreeCandidate); final DOMDataTreeChangeListener mockListener = mock(DOMDataTreeChangeListener.class); final Props props = DataTreeChangeListenerActor.props(mockListener, TEST_PATH); final ActorRef subject = getSystem().actorOf(props, "testDataTreeChangedWithNoSender"); getSystem().eventStream().subscribe(testKit.getRef(), DeadLetter.class); subject.tell(new DataTreeChanged(mockCandidates), ActorRef.noSender()); while (true) { DeadLetter deadLetter; try { deadLetter = testKit.expectMsgClass(Duration.ofSeconds(1), DeadLetter.class); } catch (AssertionError e) { break; } assertFalse("Unexpected DataTreeChangedReply", deadLetter.message() instanceof DataTreeChangedReply); } }
static Props props(final DOMDataTreeChangeListener listener, final YangInstanceIdentifier registeredPath) { return Props.create(DataTreeChangeListenerActor.class, listener, registeredPath); }
DataTreeChangeListenerActor extends AbstractUntypedActor { static Props props(final DOMDataTreeChangeListener listener, final YangInstanceIdentifier registeredPath) { return Props.create(DataTreeChangeListenerActor.class, listener, registeredPath); } }
DataTreeChangeListenerActor extends AbstractUntypedActor { static Props props(final DOMDataTreeChangeListener listener, final YangInstanceIdentifier registeredPath) { return Props.create(DataTreeChangeListenerActor.class, listener, registeredPath); } DataTreeChangeListenerActor(final DOMDataTreeChangeListener listener,
            final YangInstanceIdentifier registeredPath); }
DataTreeChangeListenerActor extends AbstractUntypedActor { static Props props(final DOMDataTreeChangeListener listener, final YangInstanceIdentifier registeredPath) { return Props.create(DataTreeChangeListenerActor.class, listener, registeredPath); } DataTreeChangeListenerActor(final DOMDataTreeChangeListener listener,
            final YangInstanceIdentifier registeredPath);  }
DataTreeChangeListenerActor extends AbstractUntypedActor { static Props props(final DOMDataTreeChangeListener listener, final YangInstanceIdentifier registeredPath) { return Props.create(DataTreeChangeListenerActor.class, listener, registeredPath); } DataTreeChangeListenerActor(final DOMDataTreeChangeListener listener,
            final YangInstanceIdentifier registeredPath);   }