Remove an unused import
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / retest / ParsingExtensionValueTest.java
1 /*
2  * Copyright (c) 2013 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.stmt.retest;
9
10 import static org.junit.Assert.assertEquals;
11 import static org.junit.Assert.assertTrue;
12
13 import java.text.DateFormat;
14 import java.text.SimpleDateFormat;
15 import java.util.Set;
16 import org.junit.Before;
17 import org.junit.Test;
18 import org.opendaylight.yangtools.yang.model.api.Module;
19
20 /**
21  * Test for testing of extensions and their arguments.
22  *
23  * @author Lukas Sedlak <lsedlak@cisco.com>
24  */
25 public class ParsingExtensionValueTest {
26
27     private Set<Module> modules;
28
29     @Before
30     public void init() throws Exception {
31         //TODO: change test or create new module in order to respect new statement parser validations
32         DateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
33
34         try {
35             modules = TestUtils.loadModules(getClass().getResource("/extensions").toURI());
36         } catch (Exception e) {
37             assertEquals(IllegalArgumentException.class, e.getClass());
38             assertTrue(e.getMessage().startsWith("ext:id is not a YANG statement or use of extension"));
39         }
40     }
41
42     @Test
43     public void parsingExtensionArgsTest() {
44
45     }
46 }