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.binding.dom.adapter;
10 import static org.junit.Assert.assertEquals;
11 import static org.mockito.Mockito.doReturn;
13 import org.junit.Test;
14 import org.junit.runner.RunWith;
15 import org.mockito.Mock;
16 import org.mockito.junit.MockitoJUnitRunner;
17 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
18 import org.opendaylight.yangtools.yang.data.tree.api.DataTreeCandidateNode;
20 @RunWith(MockitoJUnitRunner.StrictStubs.class)
21 public class BindingStructuralTypeTest {
23 private NormalizedNode normalizedNode;
25 private DataTreeCandidateNode dataTreeCandidateNode;
28 public void basicTest() {
29 doReturn(normalizedNode).when(dataTreeCandidateNode).dataBefore();
30 assertEquals(BindingStructuralType.UNKNOWN, BindingStructuralType.from(dataTreeCandidateNode));