use of org.eclipse.xtext.generator.trace.node.GeneratorNodeProcessor in project xtext-core by eclipse.
the class TemplateNodeTest method assertEquals.
protected void assertEquals(final StringConcatenationClient c) {
final GeneratorNodeExtensions ext = new GeneratorNodeExtensions();
final GeneratorNodeProcessor processor = new GeneratorNodeProcessor();
final CompositeGeneratorNode root = new CompositeGeneratorNode();
ext.appendTemplate(root, c);
final GeneratorNodeProcessor.Result result = processor.process(root);
final StringConcatenation expected = new StringConcatenation();
expected.append(c);
final String expectedM = expected.toString().replaceAll(System.lineSeparator(), "\n");
final String resultM = result.toString().replaceAll(System.lineSeparator(), "\n");
Assert.assertEquals(expectedM, resultM);
}
Aggregations