@Test public void testGetModifications() throws Exception { assertNotNull(domainListener.getIdentifier(new SxpDomainBuilder().setDomainName("global").build(), getIdentifier())); assertTrue( domainListener.getIdentifier(new SxpDomainBuilder().setDomainName("global").build(), getIdentifier()) .getTargetType() .equals(SxpDomain.class)); assertNotNull(domainListener.getObjectModifications(null)); assertNotNull(domainListener.getObjectModifications(mock(DataObjectModification.class))); assertNotNull(domainListener.getModifications(null)); DataTreeModification dtm = mock(DataTreeModification.class); when(dtm.getRootNode()).thenReturn(mock(DataObjectModification.class)); assertNotNull(domainListener.getModifications(dtm)); }
@Override protected InstanceIdentifier<SxpDomain> getIdentifier(SxpDomain d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { return parentIdentifier.child(SxpDomains.class).child(SxpDomain.class, new SxpDomainKey(d.getDomainName())); }
DomainListener extends ListListener<SxpNodeIdentity, SxpDomains, SxpDomain> { @Override protected InstanceIdentifier<SxpDomain> getIdentifier(SxpDomain d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { return parentIdentifier.child(SxpDomains.class).child(SxpDomain.class, new SxpDomainKey(d.getDomainName())); } }
DomainListener extends ListListener<SxpNodeIdentity, SxpDomains, SxpDomain> { @Override protected InstanceIdentifier<SxpDomain> getIdentifier(SxpDomain d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { return parentIdentifier.child(SxpDomains.class).child(SxpDomain.class, new SxpDomainKey(d.getDomainName())); } DomainListener(DatastoreAccess datastoreAccess); }
DomainListener extends ListListener<SxpNodeIdentity, SxpDomains, SxpDomain> { @Override protected InstanceIdentifier<SxpDomain> getIdentifier(SxpDomain d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { return parentIdentifier.child(SxpDomains.class).child(SxpDomain.class, new SxpDomainKey(d.getDomainName())); } DomainListener(DatastoreAccess datastoreAccess);  }
DomainListener extends ListListener<SxpNodeIdentity, SxpDomains, SxpDomain> { @Override protected InstanceIdentifier<SxpDomain> getIdentifier(SxpDomain d, InstanceIdentifier<SxpNodeIdentity> parentIdentifier) { return parentIdentifier.child(SxpDomains.class).child(SxpDomain.class, new SxpDomainKey(d.getDomainName())); } DomainListener(DatastoreAccess datastoreAccess);   }