@Test public void closeTest() throws DataTreeProducerException, DOMDataTreeProducerException { reset(delegate); bindingDOMDataTreeProducerAdapter.close(); verify(delegate).close(); }
@Override public void close() throws DataTreeProducerException { try { getDelegate().close(); } catch (final DOMDataTreeProducerException e) { throw new DataTreeProducerException(e.getMessage(), e); } }
BindingDOMDataTreeProducerAdapter extends AbstractBindingAdapter<DOMDataTreeProducer> implements DataTreeProducer { @Override public void close() throws DataTreeProducerException { try { getDelegate().close(); } catch (final DOMDataTreeProducerException e) { throw new DataTreeProducerException(e.getMessage(), e); } } }
BindingDOMDataTreeProducerAdapter extends AbstractBindingAdapter<DOMDataTreeProducer> implements DataTreeProducer { @Override public void close() throws DataTreeProducerException { try { getDelegate().close(); } catch (final DOMDataTreeProducerException e) { throw new DataTreeProducerException(e.getMessage(), e); } } BindingDOMDataTreeProducerAdapter(final AdapterContext adapterContext, final DOMDataTreeProducer delegate); }
BindingDOMDataTreeProducerAdapter extends AbstractBindingAdapter<DOMDataTreeProducer> implements DataTreeProducer { @Override public void close() throws DataTreeProducerException { try { getDelegate().close(); } catch (final DOMDataTreeProducerException e) { throw new DataTreeProducerException(e.getMessage(), e); } } BindingDOMDataTreeProducerAdapter(final AdapterContext adapterContext, final DOMDataTreeProducer delegate); @Override CursorAwareWriteTransaction createTransaction(final boolean isolated); @Override DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees); @Override void close(); }
BindingDOMDataTreeProducerAdapter extends AbstractBindingAdapter<DOMDataTreeProducer> implements DataTreeProducer { @Override public void close() throws DataTreeProducerException { try { getDelegate().close(); } catch (final DOMDataTreeProducerException e) { throw new DataTreeProducerException(e.getMessage(), e); } } BindingDOMDataTreeProducerAdapter(final AdapterContext adapterContext, final DOMDataTreeProducer delegate); @Override CursorAwareWriteTransaction createTransaction(final boolean isolated); @Override DataTreeProducer createProducer(final Collection<DataTreeIdentifier<?>> subtrees); @Override void close();  }