use of org.opendaylight.netconf.notifications.NetconfNotificationCollector in project netconf by opendaylight.
the class NotificationToMdsalWriterTest method setUp.
@Before
public void setUp() {
final NetconfNotificationCollector notificationCollector = mock(NetconfNotificationCollector.class);
doReturn(notificationRegistration).when(notificationCollector).registerStreamListener(any(NetconfNotificationCollector.NetconfNotificationStreamListener.class));
WriteTransaction tx = mock(WriteTransaction.class);
doNothing().when(tx).merge(any(LogicalDatastoreType.class), any(InstanceIdentifier.class), any(DataObject.class));
doNothing().when(tx).delete(any(LogicalDatastoreType.class), any(InstanceIdentifier.class));
doReturn(emptyFluentFuture()).when(tx).commit();
doReturn(tx).when(dataBroker).newWriteOnlyTransaction();
writer = new NotificationToMdsalWriter(notificationCollector, dataBroker);
writer.start();
}
Aggregations