2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.dom.spi.shard;
10 import static org.junit.Assert.assertNotNull;
12 import org.junit.Test;
14 public class ModificationContextNodeBuilderTest extends ModificationContextNodeBuilder {
17 public void basicTest() throws Exception {
18 final ForeignShardModificationContext foreignShardModificationContext =
19 new ForeignShardModificationContext(
20 TestUtils.DOM_DATA_TREE_IDENTIFIER, TestUtils.DOM_DATA_TREE_SHARD_PRODUCER);
21 final WriteableSubshardBoundaryNode writeableSubshardBoundaryNode =
22 WriteableSubshardBoundaryNode.from(foreignShardModificationContext);
23 super.addBoundary(TestUtils.PATH_ARGUMENT, writeableSubshardBoundaryNode);
25 assertNotNull(super.getInterior(TestUtils.PATH_ARGUMENT));