Migrate yang-common to JUnit5
[yangtools.git] / common / 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.jupiter.api.Assertions.assertEquals;
11
12 import org.junit.jupiter.api.Test;
13
14 public class YangConstantsTest {
15     @Test
16     public void testYangConstants() {
17         final XMLNamespace uriYang = YangConstants.RFC6020_YANG_NAMESPACE;
18         final XMLNamespace uriYin = YangConstants.RFC6020_YIN_NAMESPACE;
19         assertEquals(XMLNamespace.of("urn:ietf:params:xml:ns:yang:1"), uriYang);
20         assertEquals(XMLNamespace.of("urn:ietf:params:xml:ns:yang:yin:1"), uriYin);
21         assertEquals(QNameModule.create(uriYang).intern(), YangConstants.RFC6020_YANG_MODULE);
22         assertEquals(QNameModule.create(uriYin).intern(), YangConstants.RFC6020_YIN_MODULE);
23     }
24 }