org.teiid.test.client
Class TestClientTransaction

java.lang.Object
  extended by org.teiid.jdbc.AbstractQueryTest
      extended by org.teiid.test.framework.query.AbstractQueryTransactionTest
          extended by org.teiid.test.client.TestClientTransaction
All Implemented Interfaces:
TransactionQueryTestCase

public class TestClientTransaction
extends AbstractQueryTransactionTest

TestClientTransaction

Author:
vanhalbert

Field Summary
 
Fields inherited from class org.teiid.test.framework.query.AbstractQueryTransactionTest
connStrategy, fetchSize, queryTimeout, testname
 
Fields inherited from class org.teiid.jdbc.AbstractQueryTest
DELIMITER, internalConnection, internalResultSet, internalStatement, updateCount
 
Constructor Summary
TestClientTransaction(QueryScenario querySet)
           
 
Method Summary
 void after()
          Override after if there is behavior that needs to be performed after AbstractQueryTransactionTest.testCase() being called.
 void before()
          Override before if there is behavior that needs to be performed prior to AbstractQueryTransactionTest.testCase() being called.
 void cleanup()
          Override the super cleanup() so that the connection to Teiid is not cleaned up at this time.
protected  java.sql.Statement createStatement()
           
 boolean exceptionExpected()
           
 java.lang.String getTestName()
          Returns the name of the test so that better tracing of what tests are running/completing.
 void init(TestResultsSummary testResultsSummary, ExpectedResults expectedResults, QueryTest query)
           
 void testCase()
          Implement testCase(), it is the entry point to the execution of the test.
 
Methods inherited from class org.teiid.test.framework.query.AbstractQueryTransactionTest
assignExecutionProperties, exceptionOccurred, getApplicationException, getConnectionStrategy, getLastException, getSource, getXAConnection, getXASource, rollbackAllways, setApplicationException, setup, setupDataStore
 
Methods inherited from class org.teiid.jdbc.AbstractQueryTest
assertReaderEquals, assertResults, assertResultsSetEquals, assertResultsSetEquals, assertResultsSetEquals, assertResultsSetEquals, assertResultsSetEquals, assertResultsSetEquals, assertResultsSetMetadataEquals, assertResultsSetMetadataEquals, assertRowCount, assertUpdateCount, cancelQuery, closeConnection, closeResultSet, closeStatement, compareCaseSensitive, compareResults, createPrepareCallStatement, createPrepareStatement, execute, execute, executeAndAssertResults, executeBatch, executeBatch, getConnection, getRowCount, print, print, printResults, printResults, printResults, read, setConnection, tearDown, walkResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.teiid.test.framework.TransactionQueryTestCase
getConnection, setConnection
 

Constructor Detail

TestClientTransaction

public TestClientTransaction(QueryScenario querySet)
Method Detail

init

public void init(TestResultsSummary testResultsSummary,
                 ExpectedResults expectedResults,
                 QueryTest query)

getTestName

public java.lang.String getTestName()
Description copied from interface: TransactionQueryTestCase
Returns the name of the test so that better tracing of what tests are running/completing.

Specified by:
getTestName in interface TransactionQueryTestCase
Overrides:
getTestName in class AbstractQueryTransactionTest
Returns:
String is test name

before

public void before()
Description copied from class: AbstractQueryTransactionTest
Override before if there is behavior that needs to be performed prior to AbstractQueryTransactionTest.testCase() being called.

Specified by:
before in interface TransactionQueryTestCase
Overrides:
before in class AbstractQueryTransactionTest

testCase

public void testCase()
              throws java.lang.Exception
Description copied from class: AbstractQueryTransactionTest
Implement testCase(), it is the entry point to the execution of the test.

Specified by:
testCase in interface TransactionQueryTestCase
Specified by:
testCase in class AbstractQueryTransactionTest
Throws:
java.lang.Exception

after

public void after()
Description copied from class: AbstractQueryTransactionTest
Override after if there is behavior that needs to be performed after AbstractQueryTransactionTest.testCase() being called.

Specified by:
after in interface TransactionQueryTestCase
Overrides:
after in class AbstractQueryTransactionTest

createStatement

protected java.sql.Statement createStatement()
                                      throws java.sql.SQLException
Overrides:
createStatement in class AbstractQueryTest
Throws:
java.sql.SQLException

exceptionExpected

public boolean exceptionExpected()
Specified by:
exceptionExpected in interface TransactionQueryTestCase
Overrides:
exceptionExpected in class AbstractQueryTest

cleanup

public void cleanup()
Override the super cleanup() so that the connection to Teiid is not cleaned up at this time. This will be handled after all queries in the set have been executed.

Specified by:
cleanup in interface TransactionQueryTestCase
Overrides:
cleanup in class AbstractQueryTransactionTest
See Also:
TestClient.runTest();


Copyright © 2010. All Rights Reserved.