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