From: fhanik Date: Tue, 30 Jun 2009 19:15:28 +0000 (+0000) Subject: Apply patch by sebb from X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=389551ccc79f1c1e77951e88552c4611d87ba759;p=tomcat7.0 Apply patch by sebb from https://issues.apache.org/bugzilla/show_bug.cgi?id=47458 Store db properties in build.properties using a prefix of testdb git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@789883 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/jdbc-pool/build.properties.default b/modules/jdbc-pool/build.properties.default index 5e68b4015..0809ed0a2 100644 --- a/modules/jdbc-pool/build.properties.default +++ b/modules/jdbc-pool/build.properties.default @@ -41,6 +41,27 @@ compile.source=1.5 compile.target=1.5 compile.debug=true +# ----- Settings for Junit test database. + +# Common settings +testdb.username=root +testdb.password=password + +# H2 +testdb.url=jdbc:h2x:~/.h2/test;QUERY_TIMEOUT=0;DB_CLOSE_ON_EXIT=FALSE +testdb.driverClassName=org.h2.Driver +testdb.validationQuery=SELECT 1 + +# MySQL +#testdb.url=jdbc:mysql://localhost:3306/mysql?autoReconnect=true +#testdb.driverClassName=com.mysql.jdbc.Driver +#testdb.validationQuery=SELECT 1 + +# Derby +#testdb.url=jdbc:derby:derbyDB;create=true +#testdb.driverClassName=org.apache.derby.jdbc.EmbeddedDriver +#testdb.validationQuery=VALUES 1 + # ----- JUnit Unit Test Suite, version 3.7 or later ----- junit.home=${base.path}/junit3.8.2 junit.lib=${junit.home} diff --git a/modules/jdbc-pool/build.xml b/modules/jdbc-pool/build.xml index 822401c20..60959bbb6 100644 --- a/modules/jdbc-pool/build.xml +++ b/modules/jdbc-pool/build.xml @@ -367,10 +367,17 @@ + + + + + + Creating test table for test purposes. + @@ -383,6 +390,7 @@ Performance and fairness tests. + @@ -398,6 +406,7 @@ Functional tests. +