|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.test.client.QueryScenario
public abstract class QueryScenario
The QueryScenario manages all the information required to run one scenario of tests. This includes the following:
TestProperties.RESULT_MODES.GENERATE is specified
| Field Summary | |
|---|---|
protected QueryReader |
reader
|
protected ResultsGenerator |
resultsGen
|
| Constructor Summary | |
|---|---|
QueryScenario(java.lang.String scenarioName,
java.util.Properties queryProperties)
|
|
| Method Summary | |
|---|---|
ExpectedResults |
getExpectedResults(java.lang.String querySetID)
Return the ExpectedResults for the specified
querySetID. |
java.util.Properties |
getProperties()
Return the properties defined for this scenario |
java.util.List<QueryTest> |
getQueries(java.lang.String querySetID)
Return a Map containing the query identifier as the key, and
the value is the query. |
QueryReader |
getQueryReader()
Return the QueryReader that is to be used to obtain the queries
to process. |
java.lang.String |
getQueryScenarioIdentifier()
Return the identifier for the current scenario |
java.util.Collection<java.lang.String> |
getQuerySetIDs()
Return a Collection of querySetIDs that the
QueryReader will be providing. |
java.lang.String |
getQuerySetName()
Return the name that identifies this query set. |
ResultsGenerator |
getResultsGenerator()
Return the ResultsGenerator that is to be used to create new sets
of expected results. |
java.lang.String |
getResultsMode()
Return the result mode that was defined by the property TestProperties.PROP_RESULT_MODE |
abstract void |
handleTestResult(TestResult tr,
java.sql.ResultSet resultSet,
int updateCnt,
boolean resultFromQuery,
java.lang.String sql)
|
protected void |
setUp()
|
protected void |
validateResultsMode(java.util.Properties props)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected QueryReader reader
protected ResultsGenerator resultsGen
| Constructor Detail |
|---|
public QueryScenario(java.lang.String scenarioName,
java.util.Properties queryProperties)
| Method Detail |
|---|
protected void setUp()
protected void validateResultsMode(java.util.Properties props)
public java.lang.String getQuerySetName()
TestProperties.QUERY_SET_NAME property to obtain the name.
public java.lang.String getQueryScenarioIdentifier()
public java.util.Properties getProperties()
public java.util.List<QueryTest> getQueries(java.lang.String querySetID)
Map containing the query identifier as the key, and
the value is the query. In most simple cases, the query will be a
String However, complex types (i.e., to execute prepared
statements or other arguments), it maybe some other type.
querySetID - identifies a set of queries
public java.util.Collection<java.lang.String> getQuerySetIDs()
Collection of querySetIDs that the
QueryReader will be providing. The querySetID can be
used to obtain it associated set of queries by call
getQueries(String)
public java.lang.String getResultsMode()
TestProperties.PROP_RESULT_MODE
public ExpectedResults getExpectedResults(java.lang.String querySetID)
ExpectedResults for the specified
querySetID. These expected results will be used to compare
with the actual results in order to determine success or failure.
querySetID -
public ResultsGenerator getResultsGenerator()
ResultsGenerator that is to be used to create new sets
of expected results.
public QueryReader getQueryReader()
QueryReader that is to be used to obtain the queries
to process.
public abstract void handleTestResult(TestResult tr,
java.sql.ResultSet resultSet,
int updateCnt,
boolean resultFromQuery,
java.lang.String sql)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||