2 * Copyright (c) 2013 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.parser.impl;
10 import static org.junit.Assert.assertEquals;
12 import java.text.DateFormat;
13 import java.text.SimpleDateFormat;
15 import org.junit.Before;
16 import org.junit.Test;
17 import org.opendaylight.yangtools.yang.model.api.Module;
20 * Test for testing of extensions and their arguments.
22 * @author Lukas Sedlak <lsedlak@cisco.com>
24 public class ParsingExtensionValueTest {
26 private Set<Module> modules;
29 public void init() throws Exception {
30 DateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
32 modules = TestUtils.loadModules(getClass().getResource("/extensions").toURI());
33 assertEquals(2, modules.size());
37 public void parsingExtensionArgsTest() {