use of org.getopentest.serialization.yaml.SkipNullRepresenter in project opentest by mcdcorp.
the class Factory method getYaml.
/**
* Returns a YAML parser object pre-configured with some defaults.
*/
public static Yaml getYaml() {
final DumperOptions options = new DumperOptions();
options.setDefaultFlowStyle(DumperOptions.FlowStyle.FLOW);
options.setPrettyFlow(true);
SkipNullRepresenter representer = new SkipNullRepresenter();
representer.addClassTag(TestDefAction.class, Tag.MAP);
return new Yaml(representer, options);
}
Aggregations