use of org.eclipse.xtext.parsetree.formatter.formattertestlanguage.FormattertestlanguageFactory in project xtext-core by eclipse.
the class FormatterTest method testLinewrapDefault.
@Test
public void testLinewrapDefault() throws Exception {
FormattertestlanguageFactory f = FormattertestlanguageFactory.eINSTANCE;
TestLinewrapMinMax m = f.createTestLinewrapMinMax();
Decl d = f.createDecl();
d.getType().add("xxx");
d.getName().add("yyy");
m.getItems().add(d);
String actual = getSerializer().serialize(m, SaveOptions.newBuilder().format().getOptions());
final String expected = convertLineBreaks("test wrapminmax\n\n\nxxx yyy;");
assertEquals(expected, actual);
}
Aggregations