use of org.apache.jena.rdfxml.xmloutput.impl.BaseXMLWriter in project jena by apache.
the class TestEntityOutput method testKnownEntityNames.
public void testKnownEntityNames() {
BaseXMLWriter w = new FakeBaseWriter();
assertEquals(true, w.isPredefinedEntityName("lt"));
assertEquals(true, w.isPredefinedEntityName("gt"));
assertEquals(true, w.isPredefinedEntityName("amp"));
assertEquals(true, w.isPredefinedEntityName("apos"));
assertEquals(true, w.isPredefinedEntityName("quot"));
//
assertEquals(false, w.isPredefinedEntityName("alt"));
assertEquals(false, w.isPredefinedEntityName("amper"));
assertEquals(false, w.isPredefinedEntityName("tapost"));
assertEquals(false, w.isPredefinedEntityName("gte"));
//
assertEquals(false, w.isPredefinedEntityName("rdf"));
assertEquals(false, w.isPredefinedEntityName("smerp"));
assertEquals(false, w.isPredefinedEntityName("nl"));
assertEquals(false, w.isPredefinedEntityName("acute"));
}
Aggregations