// parse additional parameter
// generally, calling the parseArguments method more than once
// is not supported. So this is a hack.
driver.parseArguments(new String[]{"-error","10/100"});
assertEquals( "generator for "+schemaFile.getName(), driver.run(System.out), 0 );
}
}
public Test createValidDocumentTest( File document ) {
current.addExample(document);