4c40428fee441c057c226bf1be25783a034ccec3
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / YT893Test.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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.stmt;
9
10 import static org.junit.Assert.assertNotNull;
11
12 import org.junit.Test;
13 import org.opendaylight.yangtools.yang.parser.spi.meta.SomeModifiersUnresolvedException;
14
15 public class YT893Test {
16     @Test(expected = SomeModifiersUnresolvedException.class)
17     public void testCR() throws Exception {
18         StmtTestUtils.parseYangSource("/bugs/YT893/cr.yang");
19     }
20
21     @Test
22     public void testCRLF() throws Exception {
23         assertNotNull(StmtTestUtils.parseYangSource("/bugs/YT893/crlf.yang"));
24     }
25
26     @Test
27     public void testHTAB() throws Exception {
28         assertNotNull(StmtTestUtils.parseYangSource("/bugs/YT893/ht.yang"));
29     }
30
31     @Test
32     public void testLF() throws Exception {
33         assertNotNull(StmtTestUtils.parseYangSource("/bugs/YT893/lf.yang"));
34     }
35 }