TestW3CSchemaTestSet suite = new TestW3CSchemaTestSet("Test for tests", testSetFile);
String testSetLocation = suite.testSetFile.getPath();
suite.schemaTests = getSchemaTests(testSetLocation);
ListIterator li = suite.schemaTests.listIterator();
while (li.hasNext()) {
SchemaTest st = (SchemaTest) li.next();
File f = new File(testSetFile.getParent(), st.schemaDocumentLink);
if (st.currentStatus!=null) {
if (!st.currentStatus.equals("accepted")) {
System.out.println("Warning: SchemaTest which isn't accepted: " + st);
} else if (st.isValid()){
// for now only test schemas that are valid
suite.addTest(new TestRoundTripXSD(f, true));
}
}
}