| testsuite.BaseTestCase testsuite.regression.DataSourceRegressionTest
DataSourceRegressionTest | public class DataSourceRegressionTest extends BaseTestCase (Code) | | Tests fixes for bugs related to datasources.
author: Mark Matthews version: $Id: DataSourceRegressionTest.java,v 1.1.2.1 2005/05/13 18:58:38 version: mmatthews Exp $ |
Method Summary | |
public static void | main(String[] args) | public void | setUp() | public void | tearDown() | public void | testBug16791() Tests fix for BUG#16791 - NullPointerException in MysqlDataSourceFactory
due to Reference containing RefAddrs with null content. | public void | testBug19169() Tests fix for BUG#19169 - ConnectionProperties (and thus some
subclasses) are not serializable, even though some J2EE containers
expect them to be. | public void | testBug20242() Tests fix for BUG#20242 - MysqlValidConnectionChecker for JBoss doesn't
work with MySQLXADataSources. | public void | testBug3848() | public void | testBug3920() | public void | testBug4808() Tests fix for BUG#4808- Calling .close() twice on a PooledConnection
causes NPE. | public void | testCSC4616() |
DS_DATABASE_PROP_NAME | final public static String DS_DATABASE_PROP_NAME(Code) | | |
DS_HOST_PROP_NAME | final public static String DS_HOST_PROP_NAME(Code) | | |
DS_PASSWORD_PROP_NAME | final public static String DS_PASSWORD_PROP_NAME(Code) | | |
DS_PORT_PROP_NAME | final public static String DS_PORT_PROP_NAME(Code) | | |
DS_USER_PROP_NAME | final public static String DS_USER_PROP_NAME(Code) | | |
DataSourceRegressionTest | public DataSourceRegressionTest(String name)(Code) | | Creates a new DataSourceRegressionTest suite for the given test name
Parameters: name - the name of the testcase to run. |
main | public static void main(String[] args)(Code) | | Runs all test cases in this test suite
Parameters: args - |
setUp | public void setUp() throws Exception(Code) | | Sets up this test, calling registerDataSource() to bind a DataSource into
JNDI, using the FSContext JNDI provider from Sun
throws: Exception - if an error occurs. |
tearDown | public void tearDown() throws Exception(Code) | | Un-binds the DataSource, and cleans up the filesystem
throws: Exception - if an error occurs |
testBug16791 | public void testBug16791() throws Exception(Code) | | Tests fix for BUG#16791 - NullPointerException in MysqlDataSourceFactory
due to Reference containing RefAddrs with null content.
throws: Exception - if the test fails |
testBug19169 | public void testBug19169() throws Exception(Code) | | Tests fix for BUG#19169 - ConnectionProperties (and thus some
subclasses) are not serializable, even though some J2EE containers
expect them to be.
throws: Exception - if the test fails. |
testBug20242 | public void testBug20242() throws Exception(Code) | | Tests fix for BUG#20242 - MysqlValidConnectionChecker for JBoss doesn't
work with MySQLXADataSources.
throws: Exception - if the test fails. |
testBug3848 | public void testBug3848() throws Exception(Code) | | Tests fix for Bug#3848, port # alone parsed incorrectly
throws: Exception - ... |
testBug3920 | public void testBug3920() throws Exception(Code) | | Tests that we can get a connection from the DataSource bound in JNDI
during test setup
throws: Exception - if an error occurs |
testBug4808 | public void testBug4808() throws Exception(Code) | | Tests fix for BUG#4808- Calling .close() twice on a PooledConnection
causes NPE.
throws: Exception - if an error occurs. |
Methods inherited from testsuite.BaseTestCase | protected void cleanupTempFiles(File exampleTempFile, String tempfilePrefix)(Code)(Java Doc) protected void closeMemberJDBCResources()(Code)(Java Doc) protected void createFunction(String functionName, String functionDefn) throws SQLException(Code)(Java Doc) protected void createProcedure(String procedureName, String procedureDefn) throws SQLException(Code)(Java Doc) protected void createSchemaObject(String objectType, String objectName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void createTable(String tableName, String columnsAndOtherStuff) throws SQLException(Code)(Java Doc) protected void dropFunction(String functionName) throws SQLException(Code)(Java Doc) protected void dropProcedure(String procedureName) throws SQLException(Code)(Java Doc) protected void dropSchemaObject(String objectType, String objectName) throws SQLException(Code)(Java Doc) protected void dropTable(String tableName) throws SQLException(Code)(Java Doc) protected Connection getAdminConnection() throws SQLException(Code)(Java Doc) protected Connection getAdminConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, String propsList) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(Properties props) throws SQLException(Code)(Java Doc) protected Connection getConnectionWithProps(String url, Properties props) throws SQLException(Code)(Java Doc) protected int getInstanceNumber()(Code)(Java Doc) protected String getMysqlVariable(Connection c, String variableName) throws SQLException(Code)(Java Doc) protected String getMysqlVariable(String variableName) throws SQLException(Code)(Java Doc) protected Properties getPropertiesFromTestsuiteUrl() throws SQLException(Code)(Java Doc) protected int getRowCount(String tableName) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(Connection c, int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleIndexedValueWithQuery(int columnIndex, String query) throws SQLException(Code)(Java Doc) protected Object getSingleValue(String tableName, String columnName, String whereClause) throws SQLException(Code)(Java Doc) protected Object getSingleValueWithQuery(String query) throws SQLException(Code)(Java Doc) protected boolean isAdminConnectionConfigured()(Code)(Java Doc) protected boolean isClassAvailable(String classname)(Code)(Java Doc) protected boolean isRunningOnJRockit()(Code)(Java Doc) protected boolean isRunningOnJdk131()(Code)(Java Doc) protected boolean isServerRunningOnWindows() throws SQLException(Code)(Java Doc) public void logDebug(String message)(Code)(Java Doc) protected File newTempBinaryFile(String name, long size) throws IOException(Code)(Java Doc) protected String randomString()(Code)(Java Doc) final protected boolean runLongTests()(Code)(Java Doc) protected boolean runMultiHostTests()(Code)(Java Doc) protected boolean runTestIfSysPropDefined(String propName)(Code)(Java Doc) public void setUp() throws Exception(Code)(Java Doc) public void tearDown() throws Exception(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor) throws SQLException(Code)(Java Doc) protected boolean versionMeetsMinimum(int major, int minor, int subminor) throws SQLException(Code)(Java Doc)
|
|
|