public void shouldWrapWithDoubleQuotes() {
OWLNamedIndividual root = NamedIndividual("ind", pm);
String shortForm = "MyLabel";
Ontology(m,
AnnotationAssertion(prop, root.getIRI(), Literal(shortForm)));
AnnotationValueShortFormProvider sfp = new AnnotationValueShortFormProvider(
m, new SimpleShortFormProvider(),
new SimpleIRIShortFormProvider(), props, langMap);
sfp.setLiteralRenderer(new StringAnnotationVisitor() {
private static final long serialVersionUID = 1L;
@Nonnull
@Override
public String visit(@Nonnull OWLLiteral literal) {
return '"' + literal.getLiteral() + '"';
}
});
String shortForm2 = sfp.getShortForm(root);
assertEquals(shortForm2, '"' + shortForm + '"');
}