}
private TestCaseList createTestCaseList(File xmlTestFile)
{
TestReader testReader = new TestReader();
TestRun testRun = testReader.createTestRun(xmlTestFile, 1);
parseErrors = testReader.getParsingProblems();
TestCaseList tcl = new TestCaseList();
if (hasParseErrors()) {
return tcl;
}
for (Iterator i = testRun.getTestCases().iterator(); i.hasNext(); ) {
com.vividsolutions.jtstest.testrunner.TestCase testCase = (com.vividsolutions.jtstest.testrunner.TestCase) i.next();
tcl.add(new TestRunnerTestCaseAdapter(testCase));
}
return tcl;
}