From c097055288af43e53f0912c31dfa9c6bccbc247f Mon Sep 17 00:00:00 2001 From: Michael Minella Date: Wed, 9 Jan 2013 11:00:14 -0600 Subject: [PATCH] Removing redundant dependency on JPA 1.0 jar to fix integration test --- spring-batch-infrastructure-tests/pom.xml | 5 ----- .../item/database/JpaPagingItemReaderAsyncTests.java | 6 +++--- .../org/springframework/batch/jms/jms-context.xml | 8 ++++---- spring-batch-infrastructure/pom.xml | 5 ----- spring-batch-parent/pom.xml | 6 ------ spring-batch-samples/pom.xml | 5 ----- 6 files changed, 7 insertions(+), 28 deletions(-) diff --git a/spring-batch-infrastructure-tests/pom.xml b/spring-batch-infrastructure-tests/pom.xml index 8cc88bb3c..53e90faca 100644 --- a/spring-batch-infrastructure-tests/pom.xml +++ b/spring-batch-infrastructure-tests/pom.xml @@ -149,11 +149,6 @@ commons-dbcp commons-dbcp - - javax.persistence - persistence-api - true - org.hibernate hibernate-core diff --git a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java index 7b63a8c63..d8afb943b 100644 --- a/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java +++ b/spring-batch-infrastructure-tests/src/test/java/org/springframework/batch/item/database/JpaPagingItemReaderAsyncTests.java @@ -24,11 +24,11 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.batch.item.ExecutionContext; import org.springframework.batch.item.sample.Foo; -import org.springframework.test.jdbc.JdbcTestUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.test.jdbc.JdbcTestUtils; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "JpaPagingItemReaderCommonTests-context.xml") @@ -58,7 +58,7 @@ public class JpaPagingItemReaderAsyncTests { @Before public void init() { - JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); + JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); maxId = jdbcTemplate.queryForInt("SELECT MAX(ID) from T_FOOS"); for (int i = ITEM_COUNT; i > maxId; i--) { jdbcTemplate.update("INSERT into T_FOOS (ID,NAME,VALUE) values (?, ?, ?)", i, "foo" + i, i); @@ -68,7 +68,7 @@ public class JpaPagingItemReaderAsyncTests { @After public void destroy() { - JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); + JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); jdbcTemplate.update("DELETE from T_FOOS where ID>?", maxId); } diff --git a/spring-batch-infrastructure-tests/src/test/resources/org/springframework/batch/jms/jms-context.xml b/spring-batch-infrastructure-tests/src/test/resources/org/springframework/batch/jms/jms-context.xml index 83845bd48..89a9dc646 100644 --- a/spring-batch-infrastructure-tests/src/test/resources/org/springframework/batch/jms/jms-context.xml +++ b/spring-batch-infrastructure-tests/src/test/resources/org/springframework/batch/jms/jms-context.xml @@ -38,14 +38,14 @@ - - diff --git a/spring-batch-infrastructure/pom.xml b/spring-batch-infrastructure/pom.xml index efb256c41..53166e392 100644 --- a/spring-batch-infrastructure/pom.xml +++ b/spring-batch-infrastructure/pom.xml @@ -133,11 +133,6 @@ ibatis-sqlmap true - - javax.persistence - persistence-api - true - javax.mail mail diff --git a/spring-batch-parent/pom.xml b/spring-batch-parent/pom.xml index 54b9f5e52..8a9101ef5 100644 --- a/spring-batch-parent/pom.xml +++ b/spring-batch-parent/pom.xml @@ -562,12 +562,6 @@ 2.3.0 true - - javax.persistence - persistence-api - 1.0 - true - org.osgi osgi_R4_core diff --git a/spring-batch-samples/pom.xml b/spring-batch-samples/pom.xml index d98df5530..86dda5c34 100644 --- a/spring-batch-samples/pom.xml +++ b/spring-batch-samples/pom.xml @@ -170,11 +170,6 @@ hibernate-annotations true - - javax.persistence - persistence-api - true - org.apache.geronimo.specs geronimo-jta_1.1_spec