@Test public void testGetModifications() throws Exception { assertNotNull(filterListener.getIdentifier(new DomainFilterBuilder().setFilterName("basic") .setFilterSpecific(FilterSpecific.AccessOrPrefixList) .build(), getIdentifier())); assertTrue(filterListener.getIdentifier(new DomainFilterBuilder().setFilterName("extended") .setFilterSpecific(FilterSpecific.AccessOrPrefixList) .build(), getIdentifier()).getTargetType().equals(DomainFilter.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<DomainFilter> getIdentifier(DomainFilter d, InstanceIdentifier<SxpDomain> parentIdentifier) { return parentIdentifier.child(DomainFilters.class) .child(DomainFilter.class, new DomainFilterKey(d.getFilterName(), d.getFilterSpecific())); }
DomainFilterListener extends ListListener<SxpDomain, DomainFilters, DomainFilter> { @Override protected InstanceIdentifier<DomainFilter> getIdentifier(DomainFilter d, InstanceIdentifier<SxpDomain> parentIdentifier) { return parentIdentifier.child(DomainFilters.class) .child(DomainFilter.class, new DomainFilterKey(d.getFilterName(), d.getFilterSpecific())); } }
DomainFilterListener extends ListListener<SxpDomain, DomainFilters, DomainFilter> { @Override protected InstanceIdentifier<DomainFilter> getIdentifier(DomainFilter d, InstanceIdentifier<SxpDomain> parentIdentifier) { return parentIdentifier.child(DomainFilters.class) .child(DomainFilter.class, new DomainFilterKey(d.getFilterName(), d.getFilterSpecific())); } DomainFilterListener(DatastoreAccess datastoreAccess); }
DomainFilterListener extends ListListener<SxpDomain, DomainFilters, DomainFilter> { @Override protected InstanceIdentifier<DomainFilter> getIdentifier(DomainFilter d, InstanceIdentifier<SxpDomain> parentIdentifier) { return parentIdentifier.child(DomainFilters.class) .child(DomainFilter.class, new DomainFilterKey(d.getFilterName(), d.getFilterSpecific())); } DomainFilterListener(DatastoreAccess datastoreAccess);  }
DomainFilterListener extends ListListener<SxpDomain, DomainFilters, DomainFilter> { @Override protected InstanceIdentifier<DomainFilter> getIdentifier(DomainFilter d, InstanceIdentifier<SxpDomain> parentIdentifier) { return parentIdentifier.child(DomainFilters.class) .child(DomainFilter.class, new DomainFilterKey(d.getFilterName(), d.getFilterSpecific())); } DomainFilterListener(DatastoreAccess datastoreAccess);   }