From 939c8a14df63dec92bcd807285595bfbdb5cfacc Mon Sep 17 00:00:00 2001 From: Jeff Genender Date: Fri, 6 Mar 2015 09:51:26 -0700 Subject: [PATCH] AMQ-5636 - Update old openjsb tests to more current DBCP2 XA Camel tests --- activemq-camel/pom.xml | 11 ++--------- .../activemq/camel/JmsJdbcXARollbackTest.java | 2 +- .../org/apache/activemq/camel/JmsJdbcXATest.java | 2 +- .../org/apache/activemq/camel/jmsXajdbc.xml | 16 ++++++---------- .../apache/activemq/camel/jmsXajdbcRollback.xml | 16 ++++++---------- .../org/apache/activemq/usecases/activemq.xml | 2 +- .../org/apache/activemq/xbean/activemq.xml | 2 +- .../src/release/examples/conf/activemq-demo.xml | 10 +++++----- .../src/release/examples/conf/activemq-jdbc.xml | 10 +++++----- 9 files changed, 28 insertions(+), 43 deletions(-) diff --git a/activemq-camel/pom.xml b/activemq-camel/pom.xml index 5ed94ff850..c1b8d0b417 100755 --- a/activemq-camel/pom.xml +++ b/activemq-camel/pom.xml @@ -135,17 +135,10 @@ test - org.apache.openejb - openejb-core - 3.1 + org.apache.commons + commons-dbcp2 true test - - - org.apache.activemq - activemq-core - - org.objectweb.howl diff --git a/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXARollbackTest.java b/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXARollbackTest.java index 16bc006d95..15fe65f6bb 100644 --- a/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXARollbackTest.java +++ b/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXARollbackTest.java @@ -33,7 +33,7 @@ import org.apache.activemq.util.Wait; import org.apache.camel.Exchange; import org.apache.camel.component.jms.JmsMessage; import org.apache.camel.test.spring.CamelSpringTestSupport; -import org.apache.commons.dbcp.BasicDataSource; +import org.apache.commons.dbcp2.BasicDataSource; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXATest.java b/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXATest.java index 8481ca6b9a..16c8a1ebf3 100644 --- a/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXATest.java +++ b/activemq-camel/src/test/java/org/apache/activemq/camel/JmsJdbcXATest.java @@ -34,7 +34,7 @@ import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.TransactionId; import org.apache.activemq.util.Wait; import org.apache.camel.test.spring.CamelSpringTestSupport; -import org.apache.commons.dbcp.BasicDataSource; +import org.apache.commons.dbcp2.BasicDataSource; import org.junit.Ignore; import org.junit.Test; import org.slf4j.Logger; diff --git a/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbc.xml b/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbc.xml index 1c58a142eb..394fad21a4 100644 --- a/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbc.xml +++ b/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbc.xml @@ -78,16 +78,12 @@ - - - - - - - - - + + + + + + diff --git a/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbcRollback.xml b/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbcRollback.xml index f5b43061c6..70b0c7a17a 100644 --- a/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbcRollback.xml +++ b/activemq-camel/src/test/resources/org/apache/activemq/camel/jmsXajdbcRollback.xml @@ -78,16 +78,12 @@ - - - - - - - - - + + + + + + diff --git a/activemq-unit-tests/src/test/resources/org/apache/activemq/usecases/activemq.xml b/activemq-unit-tests/src/test/resources/org/apache/activemq/usecases/activemq.xml index 908b0cf2ee..b4954975b3 100644 --- a/activemq-unit-tests/src/test/resources/org/apache/activemq/usecases/activemq.xml +++ b/activemq-unit-tests/src/test/resources/org/apache/activemq/usecases/activemq.xml @@ -87,7 +87,7 @@ @@ -291,4 +291,4 @@ --> - \ No newline at end of file + diff --git a/assembly/src/release/examples/conf/activemq-jdbc.xml b/assembly/src/release/examples/conf/activemq-jdbc.xml index 026341f87c..aac9ba9bb9 100644 --- a/assembly/src/release/examples/conf/activemq-jdbc.xml +++ b/assembly/src/release/examples/conf/activemq-jdbc.xml @@ -77,26 +77,26 @@ - \ No newline at end of file +