You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
--- mysql-connector-java-5.0.5/src/testsuite/regression/DataSourceRegressionTest.java 2007-03-01 17:48:47.000000000 +0100
|
|
+++ mysql-connector-java-5.0.5-no-jboss-test/src/testsuite/regression/DataSourceRegressionTest.java 2007-04-12 09:53:05.000000000 +0200
|
|
@@ -52,7 +52,6 @@
|
|
import testsuite.simple.DataSourceTest;
|
|
|
|
import com.mysql.jdbc.NonRegisteringDriver;
|
|
-import com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker;
|
|
import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;
|
|
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
|
|
import com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory;
|
|
@@ -315,28 +314,6 @@
|
|
assertEquals(testIntFlag, thawedDs.getBlobSendChunkSize());
|
|
}
|
|
|
|
- /**
|
|
- * Tests fix for BUG#20242 - MysqlValidConnectionChecker for JBoss doesn't
|
|
- * work with MySQLXADataSources.
|
|
- *
|
|
- * @throws Exception if the test fails.
|
|
- */
|
|
- public void testBug20242() throws Exception {
|
|
- if (versionMeetsMinimum(5, 0)) {
|
|
- try {
|
|
- Class.forName("org.jboss.resource.adapter.jdbc.ValidConnectionChecker");
|
|
- } catch (Exception ex) {
|
|
- return; // class not available for testing
|
|
- }
|
|
-
|
|
- MysqlXADataSource xaDs = new MysqlXADataSource();
|
|
- xaDs.setUrl(dbUrl);
|
|
-
|
|
- MysqlValidConnectionChecker checker = new MysqlValidConnectionChecker();
|
|
- assertNull(checker.isValidConnection(xaDs.getXAConnection().getConnection()));
|
|
- }
|
|
- }
|
|
-
|
|
private void bindDataSource(String name, DataSource ds) throws Exception {
|
|
this.ctx.bind(this.tempDir.getAbsolutePath() + name, ds);
|
|
}
|