@Test public void testApply() throws Exception { DOMStoreReadWriteTransaction writeTransaction = store.newReadWriteTransaction(); MergeModification writeModification = new MergeModification(TestModel.TEST_PATH, ImmutableNodes.containerNode(TestModel.TEST_QNAME)); writeModification.apply(writeTransaction); commitTransaction(writeTransaction); Optional<NormalizedNode<?,?>> data = readData(TestModel.TEST_PATH); Assert.assertTrue(data.isPresent()); }
@Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.merge(getPath(), getData()); }
MergeModification extends WriteModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.merge(getPath(), getData()); } }
MergeModification extends WriteModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.merge(getPath(), getData()); } MergeModification();  MergeModification(final short version);  MergeModification(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data);   MergeModification(final short version, final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); }
MergeModification extends WriteModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.merge(getPath(), getData()); } MergeModification();  MergeModification(final short version);  MergeModification(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data);   MergeModification(final short version, final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); @Override void apply(final DOMStoreWriteTransaction transaction); @Override void apply(final DataTreeModification transaction); @Override byte getType(); static MergeModification fromStream(final NormalizedNodeDataInput in, final short version,
            final ReusableStreamReceiver receiver); }
MergeModification extends WriteModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.merge(getPath(), getData()); } MergeModification();  MergeModification(final short version);  MergeModification(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data);   MergeModification(final short version, final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); @Override void apply(final DOMStoreWriteTransaction transaction); @Override void apply(final DataTreeModification transaction); @Override byte getType(); static MergeModification fromStream(final NormalizedNodeDataInput in, final short version,
            final ReusableStreamReceiver receiver);  }