MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testsuite.clusterj.AbstractClusterJTest Class Reference
Inheritance diagram for testsuite.clusterj.AbstractClusterJTest:
Collaboration diagram for testsuite.clusterj.AbstractClusterJTest:

Classes

class  MyUncaughtExceptionHandler

Public Member Functions

void createSession ()

Protected Member Functions

boolean getDebug ()
void addTearDownClasses (Class<?>...classes)
void createSessionFactory ()
Properties modifyProperties ()
void dumpSystemProperties ()
void error (String message)
void error (String context, Exception ex)
void errorIfNotEqual (String message, Object expected, Object actual)
void errorIfNotEqual (String message, int[] expected, int[] actual)
void errorIfEqual (String message, Object expected, Object actual)
void failOnError ()
void closeConnection ()
void getConnection (Properties extraProperties)
Connection getConnection ()
void getConnection (String propertiesFileName)
void loadDriver ()
void setAutoCommit (Connection connection, boolean b)
void initializeErrorMessages ()
void initializeJDBC ()
void initializeSchema ()
void loadProperties ()
void loadProperties (String propsFileName)
void loadSchema ()
void loadSchemaDefinition ()
void localSetUp ()
void localTearDown ()
final void setUp () throws Exception
final void tearDown () throws Exception
void removeAll (Class<?> cls)
boolean testSchema ()
boolean resetSchema ()
String dump (List< String > list)

Static Protected Member Functions

static String dump (String string)

Protected Attributes

Session session
SessionFactory sessionFactory
Transaction tx
boolean debug

Static Protected Attributes

static final String JDBC_DRIVER_NAME = "jdbc.driverName"
static final String JDBC_URL = "jdbc.url"
static Connection connection
static String jdbcDriverName
static String jdbcPassword
static String jdbcURL
static String jdbcUsername
static Properties props
static List< StringschemaDefinition = new ArrayList<String>()
static boolean schemaInitialized = false

Detailed Description

Definition at line 58 of file AbstractClusterJTest.java.

Member Function Documentation

void testsuite.clusterj.AbstractClusterJTest.closeConnection ( )
inlineprotected

Close the connection and reset the connection variable.

Definition at line 233 of file AbstractClusterJTest.java.

Here is the caller graph for this function:

void testsuite.clusterj.AbstractClusterJTest.getConnection ( Properties  extraProperties)
inlineprotected

Get a connection with special properties. If the connection is open, close it and get a new one.

Definition at line 249 of file AbstractClusterJTest.java.

Connection testsuite.clusterj.AbstractClusterJTest.getConnection ( )
inlineprotected

Get a connection with properties from the Properties instance.

Definition at line 272 of file AbstractClusterJTest.java.

Here is the caller graph for this function:

void testsuite.clusterj.AbstractClusterJTest.getConnection ( String  propertiesFileName)
inlineprotected

Get a connection with properties from a file.

Parameters
propertiesFileNamethe name of the properties file

Definition at line 290 of file AbstractClusterJTest.java.

Here is the call graph for this function:

void testsuite.clusterj.AbstractClusterJTest.initializeJDBC ( )
inlineprotected

Initialize the JDBC driver

Definition at line 359 of file AbstractClusterJTest.java.

Here is the call graph for this function:

Here is the caller graph for this function:

void testsuite.clusterj.AbstractClusterJTest.loadDriver ( )
inlineprotected
Exceptions
ClassNotFoundException

Definition at line 305 of file AbstractClusterJTest.java.

Here is the caller graph for this function:

void testsuite.clusterj.AbstractClusterJTest.loadProperties ( )
inlineprotected

Load properties from clusterj.properties

Definition at line 391 of file AbstractClusterJTest.java.

Here is the caller graph for this function:

void testsuite.clusterj.AbstractClusterJTest.loadProperties ( String  propsFileName)
inlineprotected

Load properties from an arbitrary file name

Definition at line 396 of file AbstractClusterJTest.java.

void testsuite.clusterj.AbstractClusterJTest.loadSchema ( )
inlineprotected

Load the schema for tests

Definition at line 410 of file AbstractClusterJTest.java.

Here is the call graph for this function:

void testsuite.clusterj.AbstractClusterJTest.localSetUp ( )
inlineprotected

Subclasses may override this method to allocate any data and resources that they need in order to successfully execute this testcase. Adding teardown classes and instances is done in the overridden method.

Reimplemented in testsuite.clusterj.AbstractClusterJModelTest, testsuite.clusterj.MultithreadedTest, testsuite.clusterj.MultiplePKTest, testsuite.clusterj.CharsetTest, testsuite.clusterj.AbstractQueryTest, testsuite.clusterj.DynamicObjectTest, testsuite.clusterj.TimestampAsUtilDateTypesTest, testsuite.clusterj.TimestampAsSqlTimestampTypesTest, testsuite.clusterj.DomainTypeHandlerFactoryTest, testsuite.clusterj.NullValuesTest, jdbctest.BatchTest, testsuite.clusterj.ConnectionPoolTest, testsuite.clusterj.FindByPrimaryKey2Test, testsuite.clusterj.MultithreadedFindTest, testsuite.clusterj.CoordinatedTransactionIdVariableTest, testsuite.clusterj.NotPersistentTest, testsuite.clusterj.VarcharStringLengthTest, testsuite.clusterj.AutoCommitTest, testsuite.clusterj.BlobTest, testsuite.clusterj.LoadTest, testsuite.clusterj.QueryPrimaryKeyTest, testsuite.clusterj.QueryUniqueKeyTest, testsuite.clusterj.LongIntStringPKTest, testsuite.clusterj.LongLongStringPKTest, testsuite.clusterj.QueryTableScanTest, testsuite.clusterj.HashOnlyLongIntStringPKTest, testsuite.clusterj.NegativeMetadataTest, testsuite.clusterj.DynamicBinaryPKTest, testsuite.clusterj.SerialTransactionsTest, testsuite.clusterj.BinaryPKTest, testsuite.clusterj.DefaultConnectValuesTest, testsuite.clusterj.LongvarbinaryPKTest, testsuite.clusterj.VarbinaryPKTest, testsuite.clusterj.DeleteAllByClassTest, testsuite.clusterj.FindByPrimaryKeyTest, testsuite.clusterj.SaveTest, testsuite.clusterj.UpdateTest, testsuite.clusterj.DeleteInsertTest, testsuite.clusterj.PartitionKeyTest, testsuite.clusterj.TransactionStateTest, and jdbctest.JDBCQueryTest.

Definition at line 459 of file AbstractClusterJTest.java.

void testsuite.clusterj.AbstractClusterJTest.localTearDown ( )
inlineprotected

Subclasses may override this method to deallocate any data and resources that they needed in order to successfully execute this testcase.

Reimplemented in jdbctest.JDBCQueryTest.

Definition at line 466 of file AbstractClusterJTest.java.

Member Data Documentation

boolean testsuite.clusterj.AbstractClusterJTest.schemaInitialized = false
staticprotected

Has the schema been initialized

Definition at line 69 of file AbstractClusterJTest.java.


The documentation for this class was generated from the following file: