Test(String s) { super(TestUtils.safeName(s)) ; testString = s ; }
@Override
protected void runTest() throws Throwable
{
TurtleParser parser = new TurtleParser(new StringReader(testString)) ;
parser.setEventHandler(new TurtleEventNull()) ;
parser.getPrefixMapping().setNsPrefix("a", "http://host/a#") ;
parser.getPrefixMapping().setNsPrefix("x", "http://host/a#") ;
// Unicode 00E9 is e-acute
// Unicode 03B1 is alpha
parser.getPrefixMapping().setNsPrefix("\u00E9", "http://host/e-acute/") ;
parser.getPrefixMapping().setNsPrefix("\u03B1", "http://host/alpha/") ;
parser.getPrefixMapping().setNsPrefix("", "http://host/") ;
parser.getPrefixMapping().setNsPrefix("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#") ;
parser.getPrefixMapping().setNsPrefix("xsd", "http://www.w3.org/2001/XMLSchema#") ;
parser.setBaseURI("http://base/") ;
parser.parse() ;
}