use of net.jangaroo.exml.generator.ExmlComponentClassGenerator in project jangaroo-tools by CoreMedia.
the class ExmlComponentClassGeneratorTest method testGenerateClass.
@Test
public void testGenerateClass() throws Exception {
setUp("exmlparser.config");
String expected = FileUtils.readFileToString(new File(getClass().getResource("/expected/AllElements.as").toURI()));
ExmlToModelParser exmlToModelParser = new ExmlToModelParser(getConfigClassRegistry());
ExmlModel model = exmlToModelParser.parse(getFile("/exmlparser/AllElements.exml"));
StringWriter output = new StringWriter();
new ExmlComponentClassGenerator(getExmlc().getConfig()).generateClass(model, output);
Assert.assertEquals(expected, output.toString());
}
Aggregations