org.teiid.test.client.impl
Class ResultsGeneratorImpl
java.lang.Object
org.teiid.test.client.impl.ResultsGeneratorImpl
- All Implemented Interfaces:
- ResultsGenerator
public class ResultsGeneratorImpl
- extends Object
- implements ResultsGenerator
Method Summary |
String |
generateErrorFile(String querySetID,
String queryID,
String sql,
ResultSet resultSet,
Throwable queryError,
Object results)
Call to generate an error file as the result of incompatibilities in the
comparison of the expected results to the actual results. |
void |
generateQueryResultFile(String querySetID,
String queryID,
String query,
ResultSet result,
Throwable ex,
int testStatus)
Generate query results. |
String |
getGenerateDir()
Return the location that results will be generated to. |
String |
getOutputDir()
Return the location that output files are written to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultsGeneratorImpl
public ResultsGeneratorImpl(String testname,
Properties props)
getGenerateDir
public String getGenerateDir()
- Description copied from interface:
ResultsGenerator
- Return the location that results will be generated to.
- Specified by:
getGenerateDir
in interface ResultsGenerator
- Returns:
getOutputDir
public String getOutputDir()
- Description copied from interface:
ResultsGenerator
- Return the location that output files are written to.
- Specified by:
getOutputDir
in interface ResultsGenerator
- Returns:
generateQueryResultFile
public void generateQueryResultFile(String querySetID,
String queryID,
String query,
ResultSet result,
Throwable ex,
int testStatus)
throws QueryTestFailedException
- Generate query results. These are actual results from the server and may
be used for comparing to results from a later test run.
- Specified by:
generateQueryResultFile
in interface ResultsGenerator
- Parameters:
queryID
- resultsFile
- result
- ex
-
- Throws:
QueryTestFailedException
generateErrorFile
public String generateErrorFile(String querySetID,
String queryID,
String sql,
ResultSet resultSet,
Throwable queryError,
Object results)
throws QueryTestFailedException
- Description copied from interface:
ResultsGenerator
- Call to generate an error file as the result of incompatibilities in the
comparison of the expected results to the actual results.
- Specified by:
generateErrorFile
in interface ResultsGenerator
- Returns:
-
- Throws:
QueryTestFailedException
Copyright © 2012. All Rights Reserved.