@Test public void testOnServiceFunctionForwarderRemoved() throws Exception { ServiceFunctionForwarder serviceFunctionForwarder = build_service_function_forwarder(); when(dataTreeModification.getRootNode()).thenReturn(dataObjectModification); when(dataObjectModification.getModificationType()).thenReturn(ModificationType.DELETE); when(dataObjectModification.getDataBefore()).thenReturn(serviceFunctionForwarder); collection.add(dataTreeModification); serviceFunctionForwarderListener.onDataTreeChanged(collection); }
@Override protected void add(ServiceFunctionForwarder serviceFunctionForwarder) { LOG.info("Adding Service Function Forwarder: {}", serviceFunctionForwarder.getName()); }
ServiceFunctionForwarderListener extends AbstractDataTreeChangeListener<ServiceFunctionForwarder> { @Override protected void add(ServiceFunctionForwarder serviceFunctionForwarder) { LOG.info("Adding Service Function Forwarder: {}", serviceFunctionForwarder.getName()); } }
ServiceFunctionForwarderListener extends AbstractDataTreeChangeListener<ServiceFunctionForwarder> { @Override protected void add(ServiceFunctionForwarder serviceFunctionForwarder) { LOG.info("Adding Service Function Forwarder: {}", serviceFunctionForwarder.getName()); } ServiceFunctionForwarderListener(final DataBroker dataBroker); }
ServiceFunctionForwarderListener extends AbstractDataTreeChangeListener<ServiceFunctionForwarder> { @Override protected void add(ServiceFunctionForwarder serviceFunctionForwarder) { LOG.info("Adding Service Function Forwarder: {}", serviceFunctionForwarder.getName()); } ServiceFunctionForwarderListener(final DataBroker dataBroker); void init(); @Override void close(); }
ServiceFunctionForwarderListener extends AbstractDataTreeChangeListener<ServiceFunctionForwarder> { @Override protected void add(ServiceFunctionForwarder serviceFunctionForwarder) { LOG.info("Adding Service Function Forwarder: {}", serviceFunctionForwarder.getName()); } ServiceFunctionForwarderListener(final DataBroker dataBroker); void init(); @Override void close();  }