@Test public void testApply() throws Exception { DOMStoreReadWriteTransaction writeTransaction = store.newReadWriteTransaction(); WriteModification writeModification = new WriteModification(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.write(getPath(), data); }
WriteModification extends AbstractModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.write(getPath(), data); } }
WriteModification extends AbstractModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.write(getPath(), data); } WriteModification();  WriteModification(final short version);   WriteModification(final short version, final YangInstanceIdentifier path, final NormalizedNode<?, ?> data);  WriteModification(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); }
WriteModification extends AbstractModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.write(getPath(), data); } WriteModification();  WriteModification(final short version);   WriteModification(final short version, final YangInstanceIdentifier path, final NormalizedNode<?, ?> data);  WriteModification(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); @Override void apply(final DOMStoreWriteTransaction transaction); @Override void apply(final DataTreeModification transaction); NormalizedNode<?, ?> getData(); @Override byte getType(); @Override void readExternal(final ObjectInput in); @Override void writeExternal(final ObjectOutput out); static WriteModification fromStream(final NormalizedNodeDataInput in, final short version,
            final ReusableStreamReceiver receiver); @Override void writeTo(final NormalizedNodeDataOutput out); }
WriteModification extends AbstractModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { transaction.write(getPath(), data); } WriteModification();  WriteModification(final short version);   WriteModification(final short version, final YangInstanceIdentifier path, final NormalizedNode<?, ?> data);  WriteModification(final YangInstanceIdentifier path, final NormalizedNode<?, ?> data); @Override void apply(final DOMStoreWriteTransaction transaction); @Override void apply(final DataTreeModification transaction); NormalizedNode<?, ?> getData(); @Override byte getType(); @Override void readExternal(final ObjectInput in); @Override void writeExternal(final ObjectOutput out); static WriteModification fromStream(final NormalizedNodeDataInput in, final short version,
            final ReusableStreamReceiver receiver); @Override void writeTo(final NormalizedNodeDataOutput out);  }