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
10 package org.opendaylight.yangtools.yang.common;
12 import static org.junit.Assert.assertEquals;
15 import org.junit.Test;
17 public class YangConstantsTest {
20 public void testYangConstants() {
21 final URI uriYang = YangConstants.RFC6020_YANG_NAMESPACE;
22 final URI uriYin = YangConstants.RFC6020_YIN_NAMESPACE;
23 assertEquals(URI.create("urn:ietf:params:xml:ns:yang:1"), uriYang);
24 assertEquals(URI.create("urn:ietf:params:xml:ns:yang:yin:1"), uriYin);
25 assertEquals(QNameModule.create(uriYang, null).intern(), YangConstants.RFC6020_YANG_MODULE);
26 assertEquals(QNameModule.create(uriYin, null).intern(), YangConstants.RFC6020_YIN_MODULE);