X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2Fretest%2FParsingExtensionValueTest.java;h=5ecd311caaa91ce2088467f35a04c19b3b932cde;hb=15f75b8bb45e6e3e2454fd7dd837b19b945e4c3a;hp=f2db310aa41c33829ac8b76f6337ea9d61c82d1d;hpb=247d8cbf37d124100f9b5263cca97ff5f29c76e7;p=yangtools.git diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/retest/ParsingExtensionValueTest.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/retest/ParsingExtensionValueTest.java index f2db310aa4..5ecd311caa 100644 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/retest/ParsingExtensionValueTest.java +++ b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/retest/ParsingExtensionValueTest.java @@ -10,12 +10,7 @@ package org.opendaylight.yangtools.yang.stmt.retest; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Set; -import org.junit.Before; import org.junit.Test; -import org.opendaylight.yangtools.yang.model.api.Module; /** * Test for testing of extensions and their arguments. @@ -24,23 +19,13 @@ import org.opendaylight.yangtools.yang.model.api.Module; */ public class ParsingExtensionValueTest { - private Set modules; - - @Before - public void init() throws Exception { - //TODO: change test or create new module in order to respect new statement parser validations - DateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); - + @Test + public void extensionTest() throws Exception { try { - modules = TestUtils.loadModules(getClass().getResource("/extensions").toURI()); + TestUtils.loadModules(getClass().getResource("/extensions").toURI()); } catch (Exception e) { assertEquals(IllegalArgumentException.class, e.getClass()); assertTrue(e.getMessage().startsWith("ext:id is not a YANG statement or use of extension")); } } - - @Test - public void parsingExtensionArgsTest() { - - } }