Bug 6859 #3 Binding generator v1 refactoring
[mdsal.git] / binding / mdsal-binding-dom-adapter / src / test / java / org / opendaylight / mdsal / binding / dom / adapter / BindingMountPointAdapterTest.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.binding.dom.adapter;
9
10 import static org.junit.Assert.assertNull;
11 import static org.mockito.Mockito.mock;
12 import static org.opendaylight.mdsal.binding.generator.impl.GeneratedClassLoadingStrategy.getTCCLClassLoadingStrategy;
13
14 import org.junit.Test;
15 import org.opendaylight.mdsal.binding.generator.impl.GeneratedClassLoadingStrategy;
16 import org.opendaylight.mdsal.dom.api.DOMMountPoint;
17 import org.opendaylight.yangtools.binding.data.codec.impl.BindingNormalizedNodeCodecRegistry;
18
19 public class BindingMountPointAdapterTest {
20
21     @Test
22     public void basicTest() throws Exception {
23         final GeneratedClassLoadingStrategy loading = getTCCLClassLoadingStrategy();
24         final BindingNormalizedNodeCodecRegistry codecRegistry = mock(BindingNormalizedNodeCodecRegistry.class);
25         final BindingToNormalizedNodeCodec codec = new BindingToNormalizedNodeCodec(loading, codecRegistry);
26         final DOMMountPoint domMountPoint = mock(DOMMountPoint.class);
27         final BindingMountPointAdapter bindingMountPointAdapter = new BindingMountPointAdapter(codec, domMountPoint);
28         assertNull(bindingMountPointAdapter.getIdentifier());
29     }
30 }