}
@Override
protected void runTestForReal() throws Throwable
{
Query query = null ;
try {
try { query = queryFromTestItem(testItem) ; }
catch (QueryException qEx)
{
query = null ;
qEx.printStackTrace(System.err) ;
fail("Parse failure: "+qEx.getMessage()) ;
throw qEx ;
}
Dataset dataset = setUpDataset(query, testItem) ;
if ( dataset == null && ! doesQueryHaveDataset(query) )
fail("No dataset for query") ;
QueryExecution qe = null ;
if ( dataset == null )
qe = QueryExecutionFactory.create(query, queryFileManager) ;
else
qe = QueryExecutionFactory.create(query, dataset) ;
try {
if ( query.isSelectType() )
runTestSelect(query, qe) ;
else if ( query.isConstructType() )
runTestConstruct(query, qe) ;
else if ( query.isDescribeType() )
runTestDescribe(query, qe) ;
else if ( query.isAskType() )
runTestAsk(query, qe) ;
} finally { qe.close() ; }
}
catch (IOException ioEx)
{