@Test public void testGetModifications() throws Exception { assertNotNull(filterListener.getIdentifier(new SxpFilterBuilder().setFilterType(FilterType.InboundDiscarding) .setFilterSpecific(FilterSpecific.AccessOrPrefixList) .build(), getIdentifier())); assertTrue(filterListener.getIdentifier(new SxpFilterBuilder().setFilterType(FilterType.InboundDiscarding) .setFilterSpecific(FilterSpecific.AccessOrPrefixList) .build(), getIdentifier()).getTargetType().equals(SxpFilter.class)); assertNotNull(filterListener.getObjectModifications(null)); assertNotNull(filterListener.getObjectModifications(mock(DataObjectModification.class))); assertNotNull(filterListener.getModifications(null)); DataTreeModification dtm = mock(DataTreeModification.class); when(dtm.getRootNode()).thenReturn(mock(DataObjectModification.class)); assertNotNull(filterListener.getModifications(dtm)); }
@Override protected InstanceIdentifier<SxpFilter> getIdentifier(SxpFilter d, InstanceIdentifier<SxpPeerGroup> parentIdentifier) { return parentIdentifier.child(SxpFilter.class, new SxpFilterKey(d.getFilterSpecific(), d.getFilterType())); }
FilterListener extends ContainerListener<SxpPeerGroup, SxpFilter> { @Override protected InstanceIdentifier<SxpFilter> getIdentifier(SxpFilter d, InstanceIdentifier<SxpPeerGroup> parentIdentifier) { return parentIdentifier.child(SxpFilter.class, new SxpFilterKey(d.getFilterSpecific(), d.getFilterType())); } }
FilterListener extends ContainerListener<SxpPeerGroup, SxpFilter> { @Override protected InstanceIdentifier<SxpFilter> getIdentifier(SxpFilter d, InstanceIdentifier<SxpPeerGroup> parentIdentifier) { return parentIdentifier.child(SxpFilter.class, new SxpFilterKey(d.getFilterSpecific(), d.getFilterType())); } FilterListener(DatastoreAccess datastoreAccess); }
FilterListener extends ContainerListener<SxpPeerGroup, SxpFilter> { @Override protected InstanceIdentifier<SxpFilter> getIdentifier(SxpFilter d, InstanceIdentifier<SxpPeerGroup> parentIdentifier) { return parentIdentifier.child(SxpFilter.class, new SxpFilterKey(d.getFilterSpecific(), d.getFilterType())); } FilterListener(DatastoreAccess datastoreAccess);  }
FilterListener extends ContainerListener<SxpPeerGroup, SxpFilter> { @Override protected InstanceIdentifier<SxpFilter> getIdentifier(SxpFilter d, InstanceIdentifier<SxpPeerGroup> parentIdentifier) { return parentIdentifier.child(SxpFilter.class, new SxpFilterKey(d.getFilterSpecific(), d.getFilterType())); } FilterListener(DatastoreAccess datastoreAccess);   }