CodeGeneratorImpl codegen = new CodeGeneratorImpl();
codegen.setBuildContext(new DefaultBuildContext());
codegen.generateSources(context, sourcesOutputDir, Set.copyOf(context.getModules()),
- module -> Optional.of(resourceDirPath + File.separator + module.getName()
+ (module, representation) -> Optional.of(resourceDirPath + File.separator + module.getName()
+ YangConstants.RFC6020_YANG_FILE_EXTENSION));
}
codegen.setMavenProject(new MavenProject());
codegen.setAdditionalConfig(ImmutableMap.of("test", "test"));
Collection<File> files = codegen.generateSources(context, null, Set.copyOf(context.getModules()),
- module -> Optional.of(module.getName()));
+ (module, representation) -> Optional.of(module.getName()));
assertFalse(files.isEmpty());
files.forEach(file -> {
deleteTestDir(file);