@Test public void testDataChangedWhenNotificationsAreEnabled() { 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, "testDataTreeChangedNotificationsEnabled"); subject.tell(new EnableNotification(true, "test"), testKit.getRef()); subject.tell(new DataTreeChanged(mockCandidates), testKit.getRef()); testKit.expectMsgClass(DataTreeChangedReply.class); verify(mockListener).onDataTreeChanged(mockCandidates); }
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);   }