X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fmaven-yang%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang2sources%2Fspi%2FCodeGeneratorTestImpl.java;h=3103042f9970c4d2d24ab606f709322f8daa85e4;hb=7c3362df780f30a47d0f6a7b7695360bbb5513bc;hp=172a2f25b67dcd03ed540bda966593e68bd0d367;hpb=84e8316159f90f224f75e86a606c525e53b2ff7a;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/maven-yang/src/test/java/org/opendaylight/controller/yang2sources/spi/CodeGeneratorTestImpl.java b/opendaylight/sal/yang-prototype/code-generator/maven-yang/src/test/java/org/opendaylight/controller/yang2sources/spi/CodeGeneratorTestImpl.java index 172a2f25b6..3103042f99 100644 --- a/opendaylight/sal/yang-prototype/code-generator/maven-yang/src/test/java/org/opendaylight/controller/yang2sources/spi/CodeGeneratorTestImpl.java +++ b/opendaylight/sal/yang-prototype/code-generator/maven-yang/src/test/java/org/opendaylight/controller/yang2sources/spi/CodeGeneratorTestImpl.java @@ -13,27 +13,55 @@ import java.util.Map; import java.util.Set; import org.apache.maven.plugin.logging.Log; +import org.apache.maven.project.MavenProject; import org.opendaylight.controller.yang.model.api.Module; import org.opendaylight.controller.yang.model.api.SchemaContext; public class CodeGeneratorTestImpl implements CodeGenerator { + private Log log; + @Override public Collection generateSources(SchemaContext context, - File outputBaseDir, Set currentModuleBuilders, - File projectMainDir) { - // no-op + File outputBaseDir, Set currentModuleBuilders) { + if (log != null) { + log.debug(getClass().getCanonicalName() + + " generateSources:context: " + context); + log.debug(getClass().getCanonicalName() + + " generateSources:outputBaseDir: " + outputBaseDir); + log.debug(getClass().getCanonicalName() + + " generateSources:currentModuleBuilders: " + + currentModuleBuilders); + + } return null; } @Override public void setLog(Log log) { - // no-op + this.log = log; } @Override public void setAdditionalConfig(Map additionalConfiguration) { - // no-op + if (log != null) + log.debug(getClass().getCanonicalName() + " additionalConfig: " + + additionalConfiguration); + } + + + @Override + public void setResourceBaseDir(File resourceBaseDir) { + if (log != null) + log.debug(getClass().getCanonicalName() + " resourceBaseDir: " + + resourceBaseDir); + } + + @Override + public void setMavenProject(MavenProject project) { + if (log != null) + log.debug(getClass().getCanonicalName() + " maven project: " + + project); } }