@Test public void testOnWrite() { when(rootNode.getModificationType()).thenReturn(DataObjectModification.ModificationType.WRITE); listener.onDataTreeChanged(changes); verify(listener).onWrite(rootNode, rootIdentifier); }
@Override protected void onWrite(DataObjectModification<SflowClientSettings> rootNode, InstanceIdentifier<SflowClientSettings> rootIdentifier) { onSubtreeModified(rootNode, rootIdentifier); }
SflowClientSettingsListener extends DataTreeChangeHandler<SflowClientSettings> { @Override protected void onWrite(DataObjectModification<SflowClientSettings> rootNode, InstanceIdentifier<SflowClientSettings> rootIdentifier) { onSubtreeModified(rootNode, rootIdentifier); } }
SflowClientSettingsListener extends DataTreeChangeHandler<SflowClientSettings> { @Override protected void onWrite(DataObjectModification<SflowClientSettings> rootNode, InstanceIdentifier<SflowClientSettings> rootIdentifier) { onSubtreeModified(rootNode, rootIdentifier); } SflowClientSettingsListener(DataBroker dataprovider, ScheduledExecutorService executor, StatisticsManager statisticsManager); }
SflowClientSettingsListener extends DataTreeChangeHandler<SflowClientSettings> { @Override protected void onWrite(DataObjectModification<SflowClientSettings> rootNode, InstanceIdentifier<SflowClientSettings> rootIdentifier) { onSubtreeModified(rootNode, rootIdentifier); } SflowClientSettingsListener(DataBroker dataprovider, ScheduledExecutorService executor, StatisticsManager statisticsManager);  }
SflowClientSettingsListener extends DataTreeChangeHandler<SflowClientSettings> { @Override protected void onWrite(DataObjectModification<SflowClientSettings> rootNode, InstanceIdentifier<SflowClientSettings> rootIdentifier) { onSubtreeModified(rootNode, rootIdentifier); } SflowClientSettingsListener(DataBroker dataprovider, ScheduledExecutorService executor, StatisticsManager statisticsManager);   }