d599d4048595557b6fdfc378d419a9382ed12032
[mdsal.git] / binding2 / mdsal-binding2-dom-adapter / src / test / java / org / opendaylight / mdsal / binding / javav2 / dom / adapter / test / BasicLeafValueTest.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. 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
9 package org.opendaylight.mdsal.binding.javav2.dom.adapter.test;
10
11 import org.junit.Ignore;
12 import org.junit.Test;
13 import org.opendaylight.mdsal.binding.javav2.api.WriteTransaction;
14 import org.opendaylight.mdsal.binding.javav2.spec.base.InstanceIdentifier;
15 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
16 import org.opendaylight.mdsal.common.api.TransactionCommitFailedException;
17 import org.opendaylight.mdsal.gen.javav2.urn.test.rev170627.data.MyCont;
18 import org.opendaylight.mdsal.gen.javav2.urn.test.rev170627.dto.MyContBuilder;
19
20 public class BasicLeafValueTest extends AbstractDataBrokerTest {
21
22     private static final InstanceIdentifier<MyCont> MY_CONT_NODE_PATH
23             = InstanceIdentifier.create(MyCont.class);
24
25     @Ignore
26     @Test
27     public void testMyContLeafNode() throws TransactionCommitFailedException {
28         final WriteTransaction writeTx = getDataBroker().newWriteOnlyTransaction();
29         final MyContBuilder hello = new MyContBuilder().setMyLeaf("hello");
30         writeTx.put(LogicalDatastoreType.OPERATIONAL, MY_CONT_NODE_PATH, hello.build());
31         writeTx.submit().checkedGet();
32     }
33 }