Do not generate 'isFoo()' methods
[mdsal.git] / dom / mdsal-dom-spi / src / test / java / org / opendaylight / mdsal / dom / spi / shard / ModificationContextNodeBuilderTest.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.mdsal.dom.spi.shard;
9
10 import static org.junit.Assert.assertNotNull;
11
12 import org.junit.Test;
13
14 public class ModificationContextNodeBuilderTest extends ModificationContextNodeBuilder {
15
16     @Test
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);
24
25         assertNotNull(super.getInterior(TestUtils.PATH_ARGUMENT));
26     }
27 }