X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-maven-plugin%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang2sources%2Fplugin%2FYangToSourcesMojoTest.java;h=cf0fc4b3bfa673e31cd9dc9e0aa47d65f3eec765;hb=8dacdc2b6097844d54f85f300fd96e8f0c79cc8e;hp=c3571e058e03fef5efb24d91feae8dff9b4b0b9a;hpb=9bc8fd1a65b8667ea70939be730f909e789147fa;p=yangtools.git diff --git a/yang/yang-maven-plugin/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojoTest.java b/yang/yang-maven-plugin/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojoTest.java index c3571e058e..cf0fc4b3bf 100644 --- a/yang/yang-maven-plugin/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojoTest.java +++ b/yang/yang-maven-plugin/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesMojoTest.java @@ -7,6 +7,7 @@ */ package org.opendaylight.yangtools.yang2sources.plugin; +import com.google.common.collect.ImmutableList; import java.io.File; import java.util.ArrayList; import java.util.List; @@ -21,7 +22,6 @@ import org.mockito.Mockito; import org.mockito.runners.MockitoJUnitRunner; import org.opendaylight.yangtools.yang2sources.plugin.ConfigArg.CodeGeneratorArg; import org.opendaylight.yangtools.yang2sources.plugin.GenerateSourcesTest.GeneratorMock; -import org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.YangProvider; @RunWith(MockitoJUnitRunner.class) public class YangToSourcesMojoTest { @@ -66,7 +66,6 @@ public class YangToSourcesMojoTest { final File file = new File(getClass().getResource("/yang").getFile()); final File excludedYang = new File(getClass().getResource("/yang/excluded-file.yang").getFile()); final String path = file.getPath(); - final File[] yangFilesRootDir = { excludedYang }; final List codeGenerators = new ArrayList<>(); final CodeGeneratorArg codeGeneratorArg = new CodeGeneratorArg(GeneratorMock.class.getName(), path); codeGenerators.add(codeGeneratorArg); @@ -74,7 +73,7 @@ public class YangToSourcesMojoTest { final Build build = new Build(); Mockito.when(mvnProject.getBuild()).thenReturn(build); final boolean dependencies = true; - this.proc = new YangToSourcesProcessor(file, yangFilesRootDir, codeGenerators, + this.proc = new YangToSourcesProcessor(file, ImmutableList.of(excludedYang), codeGenerators, mvnProject, dependencies, new YangProvider()); } }