org.objectweb.cjdbc.scenario.tools.testlet
Class AbstractConnectionTestLet

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet
              extended byorg.objectweb.cjdbc.scenario.tools.testlet.AbstractConnectionTestLet
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BlobTestLet, ClobTestLet, ColumnUpdateTestLet, CreateTableTestLet, FailoverOn2BackendsTestLet, ProcedureTestLet, SmallBlobTestLet, UpdateTestLet

public abstract class AbstractConnectionTestLet
extends AbstractTestLet

This class defines a AbstractTestLet. This expands the test let to connection oriented test lets.

Version:
1.0
Author:
Nicolas Modrzyk

Field Summary
protected  java.sql.Connection jdbcConnection
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet
COLUMN_NAME, config, FILE_NAME, IGNORE_CASE, ITERATION, LIST_FAILOVER_BACKENDS, MACRO_NAME, NUMBER_OF_UPDATES, PROCEDURE_NAME, SELECTED_COLUMNS, TABLE_METADATA_COLUMNS, TABLE_NAME, UPDATED_COLUMN_VALUE, USE_CJDBC_CLASS, USE_OPTIMIZED_STATEMENT, USE_PREPARED_STATEMENT, USE_TRANSACTIONS, USE_UPDATE_STATEMENT, VIRTUAL_DATABASE
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
AbstractConnectionTestLet(java.sql.Connection con)
          Creates a new AbstractTestLet object
 
Method Summary
 java.sql.Connection getJdbcConnection()
          Returns the jdbcConnection value.
 void setJdbcConnection(java.sql.Connection jdbcConnection)
          Sets the jdbcConnection value.
 
Methods inherited from class org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet
checkMemoryUsage, configure, execute, executeBatch, executeBatch, getConfig, getConfigBoolean, getInitialMemoryUsage, getTotalMemoryUsage, getTotalTimeUsage, ignoreCase, set, setConfig, useCJDBCClass, usePreparedStatement, useTransaction
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jdbcConnection

protected java.sql.Connection jdbcConnection
Constructor Detail

AbstractConnectionTestLet

public AbstractConnectionTestLet(java.sql.Connection con)
Creates a new AbstractTestLet object

Parameters:
con - connection to use for testing
Method Detail

getJdbcConnection

public java.sql.Connection getJdbcConnection()
Returns the jdbcConnection value.

Returns:
Returns the jdbcConnection.

setJdbcConnection

public void setJdbcConnection(java.sql.Connection jdbcConnection)
Sets the jdbcConnection value.

Parameters:
jdbcConnection - The jdbcConnection to set.


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.