@Test public void mergeToCurrentTest() throws Exception { returnNull(); this.mergeToCurrent(TestUtils.NORMALIZED_NODE_CONTAINER); verify(TestUtils.DOM_DATA_TREE_WRITE_CURSOR).merge(TestUtils.PATH_ARGUMENT, TestUtils.NORMALIZED_NODE); }
@Override public final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data) { for (NormalizedNode<?, ?> child : data.getValue()) { PathArgument childId = child.getIdentifier(); WriteableModificationNode shardChild = node.getChild(childId); if (shardChild != null) { throw new UnsupportedOperationException("Not implemented yet"); } cursor.merge(childId, child); } }
WritableNodeOperation implements WriteCursorStrategy { @Override public final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data) { for (NormalizedNode<?, ?> child : data.getValue()) { PathArgument childId = child.getIdentifier(); WriteableModificationNode shardChild = node.getChild(childId); if (shardChild != null) { throw new UnsupportedOperationException("Not implemented yet"); } cursor.merge(childId, child); } } }
WritableNodeOperation implements WriteCursorStrategy { @Override public final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data) { for (NormalizedNode<?, ?> child : data.getValue()) { PathArgument childId = child.getIdentifier(); WriteableModificationNode shardChild = node.getChild(childId); if (shardChild != null) { throw new UnsupportedOperationException("Not implemented yet"); } cursor.merge(childId, child); } } protected  WritableNodeOperation(final WriteableModificationNode node, final DOMDataTreeWriteCursor cursor); }
WritableNodeOperation implements WriteCursorStrategy { @Override public final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data) { for (NormalizedNode<?, ?> child : data.getValue()) { PathArgument childId = child.getIdentifier(); WriteableModificationNode shardChild = node.getChild(childId); if (shardChild != null) { throw new UnsupportedOperationException("Not implemented yet"); } cursor.merge(childId, child); } } protected  WritableNodeOperation(final WriteableModificationNode node, final DOMDataTreeWriteCursor cursor); @Override final void delete(final PathArgument arg); @Override final void merge(final PathArgument arg, final NormalizedNode<?, ?> data); @Override final void write(final PathArgument arg, final NormalizedNode<?, ?> data); @Override final WriteCursorStrategy enter(final PathArgument arg); @Override final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data); @Override @SuppressWarnings("rawtypes") final void writeToCurrent(final NormalizedNodeContainer<?, ?, ?> data); }
WritableNodeOperation implements WriteCursorStrategy { @Override public final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data) { for (NormalizedNode<?, ?> child : data.getValue()) { PathArgument childId = child.getIdentifier(); WriteableModificationNode shardChild = node.getChild(childId); if (shardChild != null) { throw new UnsupportedOperationException("Not implemented yet"); } cursor.merge(childId, child); } } protected  WritableNodeOperation(final WriteableModificationNode node, final DOMDataTreeWriteCursor cursor); @Override final void delete(final PathArgument arg); @Override final void merge(final PathArgument arg, final NormalizedNode<?, ?> data); @Override final void write(final PathArgument arg, final NormalizedNode<?, ?> data); @Override final WriteCursorStrategy enter(final PathArgument arg); @Override final void mergeToCurrent(final NormalizedNodeContainer<?, ?, ?> data); @Override @SuppressWarnings("rawtypes") final void writeToCurrent(final NormalizedNodeContainer<?, ?, ?> data);  }