summaryrefslogtreecommitdiff
blob: 394830701fee37308b1ce9f0ff12b95d8ae8f4e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- 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);
 	}