@Test public void testOnSfcScfOfDataRemoved() throws Exception { ServiceFunctionClassifier serviceFunctionClassifier = buildServiceFunctionClassifier(); when(dataTreeModification.getRootNode()).thenReturn(dataObjectModification); when(dataObjectModification.getModificationType()).thenReturn(ModificationType.DELETE); when(dataObjectModification.getDataBefore()).thenReturn(serviceFunctionClassifier); collection.add(dataTreeModification); sfcScfOfDataListener.onDataTreeChanged(collection); Thread.sleep(500); verify(sfcScfOfProcessor).deletedServiceFunctionClassifier(serviceFunctionClassifier); }
@Override protected void add(ServiceFunctionClassifier serviceFunctionClassifier) { if (serviceFunctionClassifier != null) { LOG.debug("Created ServiceFunctionClassifier name: {}\n", serviceFunctionClassifier.getName()); this.sfcScfProcessor.createdServiceFunctionClassifier(serviceFunctionClassifier); } }
SfcScfOfDataListener extends AbstractDataTreeChangeListener<ServiceFunctionClassifier> { @Override protected void add(ServiceFunctionClassifier serviceFunctionClassifier) { if (serviceFunctionClassifier != null) { LOG.debug("Created ServiceFunctionClassifier name: {}\n", serviceFunctionClassifier.getName()); this.sfcScfProcessor.createdServiceFunctionClassifier(serviceFunctionClassifier); } } }
SfcScfOfDataListener extends AbstractDataTreeChangeListener<ServiceFunctionClassifier> { @Override protected void add(ServiceFunctionClassifier serviceFunctionClassifier) { if (serviceFunctionClassifier != null) { LOG.debug("Created ServiceFunctionClassifier name: {}\n", serviceFunctionClassifier.getName()); this.sfcScfProcessor.createdServiceFunctionClassifier(serviceFunctionClassifier); } } SfcScfOfDataListener(final DataBroker dataBroker, SfcScfOfProcessor sfcScfProcessor); }
SfcScfOfDataListener extends AbstractDataTreeChangeListener<ServiceFunctionClassifier> { @Override protected void add(ServiceFunctionClassifier serviceFunctionClassifier) { if (serviceFunctionClassifier != null) { LOG.debug("Created ServiceFunctionClassifier name: {}\n", serviceFunctionClassifier.getName()); this.sfcScfProcessor.createdServiceFunctionClassifier(serviceFunctionClassifier); } } SfcScfOfDataListener(final DataBroker dataBroker, SfcScfOfProcessor sfcScfProcessor); void init(); @Override void close(); }
SfcScfOfDataListener extends AbstractDataTreeChangeListener<ServiceFunctionClassifier> { @Override protected void add(ServiceFunctionClassifier serviceFunctionClassifier) { if (serviceFunctionClassifier != null) { LOG.debug("Created ServiceFunctionClassifier name: {}\n", serviceFunctionClassifier.getName()); this.sfcScfProcessor.createdServiceFunctionClassifier(serviceFunctionClassifier); } } SfcScfOfDataListener(final DataBroker dataBroker, SfcScfOfProcessor sfcScfProcessor); void init(); @Override void close();  }