Checkstyle clean-up src/test/java
[yangtools.git] / yang / yang-common / src / test / java / org / opendaylight / yangtools / yang / common / YangConstantsTest.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.yangtools.yang.common;
9
10 import static org.junit.Assert.assertEquals;
11
12 import java.net.URI;
13 import org.junit.Test;
14
15 public class YangConstantsTest {
16
17     @Test
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, null).intern(), YangConstants.RFC6020_YANG_MODULE);
24         assertEquals(QNameModule.create(uriYin, null).intern(), YangConstants.RFC6020_YIN_MODULE);
25     }
26 }