use of uk.co.real_logic.sbe.xml.ParserOptions in project simple-binary-encoding by real-logic.
the class RustGeneratorTest method generateIrForResource.
public static Ir generateIrForResource(final String localResourceName) {
final ParserOptions options = ParserOptions.builder().stopOnError(true).build();
final String xmlLocalResourceName = localResourceName.endsWith(".xml") ? localResourceName : localResourceName + ".xml";
final MessageSchema schema;
try {
schema = parse(TestUtil.getLocalResource(xmlLocalResourceName), options);
} catch (final Exception e) {
throw new IllegalStateException(e);
}
final IrGenerator irg = new IrGenerator();
return irg.generate(schema);
}
Aggregations