Do not pull in yang-parser-impl 62/52362/3
authorRobert Varga <rovarga@cisco.com>
Tue, 28 Feb 2017 12:43:23 +0000 (13:43 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 1 Mar 2017 08:55:31 +0000 (09:55 +0100)
Parser is used only in tests and only via test-utils,
hence this project should not be pulling it in.

Change-Id: I336eda6effff373deea0f82f81643ac73e655e83
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-dom-codec/pom.xml
binding/mdsal-binding-generator-impl/pom.xml
binding/mdsal-binding-generator-util/pom.xml
binding/mdsal-binding-generator-util/src/test/java/org/opendaylight/mdsal/binding/generator/util/BindingGeneratorUtilTest.java

index 5bca8f9bd4d8c28cc6b0d1d2d0ae630ca8f7bb34..41b9ba2392a670fc3696a8910cd07513fe5f8831 100644 (file)
             <groupId>org.opendaylight.mdsal</groupId>
             <artifactId>mdsal-binding-generator-impl</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>yang-parser-impl</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-data-impl</artifactId>
index 5f1767b4978797bded099e977913e8238ffaf981..17b3db4b1b10b7c0098db2d89b969cd799f331d4 100644 (file)
             <groupId>org.opendaylight.mdsal</groupId>
             <artifactId>mdsal-binding-generator-util</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>yang-parser-impl</artifactId>
+        </dependency>
 
         <dependency>
             <groupId>junit</groupId>
index 04828554265c133375de677276f5d3f4247a93be..f70183ea4774cf61a7e790111f5411aa3fc4f526 100644 (file)
 
     <dependencies>
         <dependency>
-            <groupId>org.opendaylight.mdsal</groupId>
-            <artifactId>mdsal-binding-generator-api</artifactId>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>yang-model-api</artifactId>
         </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>yang-model-api</artifactId>
+            <artifactId>yang-model-util</artifactId>
         </dependency>
         <dependency>
             <groupId>org.opendaylight.mdsal</groupId>
-            <artifactId>yang-binding</artifactId>
+            <artifactId>mdsal-binding-generator-api</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>yang-parser-impl</artifactId>
+            <groupId>org.opendaylight.mdsal</groupId>
+            <artifactId>yang-binding</artifactId>
         </dependency>
 
         <dependency>
index 099eea05a8001ec02edf7517a441518f3c0ff3ef..318fd4efca12847670cf19930038e6d1aefbfcb6 100644 (file)
@@ -19,7 +19,6 @@ import static org.mockito.Mockito.mock;
 import com.google.common.base.Optional;
 import com.google.common.collect.ImmutableList;
 import java.io.File;
-import java.io.IOException;
 import java.io.Serializable;
 import java.net.URISyntaxException;
 import java.util.ArrayList;
@@ -48,8 +47,6 @@ import org.opendaylight.yangtools.yang.model.util.type.BaseTypes;
 import org.opendaylight.yangtools.yang.model.util.type.DerivedTypes;
 import org.opendaylight.yangtools.yang.model.util.type.RestrictedTypes;
 import org.opendaylight.yangtools.yang.model.util.type.StringTypeBuilder;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
 
 public class BindingGeneratorUtilTest {
@@ -80,11 +77,9 @@ public class BindingGeneratorUtilTest {
      * &lt;/ul&gt;
      * &lt;li&gt;packageNameForTypeDefinition&lt;/li&gt; &lt;li&gt;moduleNamespaceToPackageName&lt;/li&gt;
      * - without revision &lt;/ul&gt;
-     * @throws ReactorException Reactor exception
-     * @throws SourceException Source exception
      */
     @Test
-    public void testBindingGeneratorUtilMethods() throws IOException, SourceException, ReactorException {
+    public void testBindingGeneratorUtilMethods() throws Exception {
         List<File> testModels = loadTestResources("/module.yang");
 
         final Set<Module> modules = YangParserTestUtils.parseYangSources(testModels).getModules();