@Test public void createProducerTest() { doReturn(mock(DOMDataTreeProducer.class)).when(delegate).createProducer(any()); assertNotNull(bindingDOMDataTreeServiceAdapter.createProducer(ImmutableSet.of())); verify(delegate).createProducer(any()); }
@Override public DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees) { final Collection<DOMDataTreeIdentifier> domSubtrees = currentSerializer().toDOMDataTreeIdentifiers(subtrees); final DOMDataTreeProducer domChildProducer = getDelegate().createProducer(domSubtrees); return new BindingDOMDataTreeProducerAdapter(adapterContext(), domChildProducer); }
BindingDOMDataTreeServiceAdapter extends AbstractBindingAdapter<DOMDataTreeService> implements DataTreeService { @Override public DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees) { final Collection<DOMDataTreeIdentifier> domSubtrees = currentSerializer().toDOMDataTreeIdentifiers(subtrees); final DOMDataTreeProducer domChildProducer = getDelegate().createProducer(domSubtrees); return new BindingDOMDataTreeProducerAdapter(adapterContext(), domChildProducer); } }
BindingDOMDataTreeServiceAdapter extends AbstractBindingAdapter<DOMDataTreeService> implements DataTreeService { @Override public DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees) { final Collection<DOMDataTreeIdentifier> domSubtrees = currentSerializer().toDOMDataTreeIdentifiers(subtrees); final DOMDataTreeProducer domChildProducer = getDelegate().createProducer(domSubtrees); return new BindingDOMDataTreeProducerAdapter(adapterContext(), domChildProducer); } BindingDOMDataTreeServiceAdapter(final AdapterContext adapterContext, final DOMDataTreeService delegate); }
BindingDOMDataTreeServiceAdapter extends AbstractBindingAdapter<DOMDataTreeService> implements DataTreeService { @Override public DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees) { final Collection<DOMDataTreeIdentifier> domSubtrees = currentSerializer().toDOMDataTreeIdentifiers(subtrees); final DOMDataTreeProducer domChildProducer = getDelegate().createProducer(domSubtrees); return new BindingDOMDataTreeProducerAdapter(adapterContext(), domChildProducer); } BindingDOMDataTreeServiceAdapter(final AdapterContext adapterContext, final DOMDataTreeService delegate); @Override DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees); @Override ListenerRegistration<T> registerListener(final T listener,
            final Collection<DataTreeIdentifier<?>> subtrees, final boolean allowRxMerges,
            final Collection<DataTreeProducer> producers); }
BindingDOMDataTreeServiceAdapter extends AbstractBindingAdapter<DOMDataTreeService> implements DataTreeService { @Override public DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees) { final Collection<DOMDataTreeIdentifier> domSubtrees = currentSerializer().toDOMDataTreeIdentifiers(subtrees); final DOMDataTreeProducer domChildProducer = getDelegate().createProducer(domSubtrees); return new BindingDOMDataTreeProducerAdapter(adapterContext(), domChildProducer); } BindingDOMDataTreeServiceAdapter(final AdapterContext adapterContext, final DOMDataTreeService delegate); @Override DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees); @Override ListenerRegistration<T> registerListener(final T listener,
            final Collection<DataTreeIdentifier<?>> subtrees, final boolean allowRxMerges,
            final Collection<DataTreeProducer> producers);  }