Commit 8b1022ef authored by Andy Wilkinson's avatar Andy Wilkinson

Upgrade to Spring Batch 3.0.4 snapshots

Closes gh-2712
parent c51277f6
...@@ -23,7 +23,6 @@ import javax.persistence.EntityManagerFactory; ...@@ -23,7 +23,6 @@ import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource; import javax.sql.DataSource;
import org.junit.After; import org.junit.After;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.ExpectedException; import org.junit.rules.ExpectedException;
...@@ -85,7 +84,6 @@ public class BatchAutoConfigurationTests { ...@@ -85,7 +84,6 @@ public class BatchAutoConfigurationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void testDefaultContext() throws Exception { public void testDefaultContext() throws Exception {
this.context = new AnnotationConfigApplicationContext(); this.context = new AnnotationConfigApplicationContext();
this.context.register(TestConfiguration.class, this.context.register(TestConfiguration.class,
...@@ -122,7 +120,6 @@ public class BatchAutoConfigurationTests { ...@@ -122,7 +120,6 @@ public class BatchAutoConfigurationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void testDefinesAndLaunchesJob() throws Exception { public void testDefinesAndLaunchesJob() throws Exception {
this.context = new AnnotationConfigApplicationContext(); this.context = new AnnotationConfigApplicationContext();
this.context.register(JobConfiguration.class, this.context.register(JobConfiguration.class,
...@@ -136,7 +133,6 @@ public class BatchAutoConfigurationTests { ...@@ -136,7 +133,6 @@ public class BatchAutoConfigurationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void testDefinesAndLaunchesNamedJob() throws Exception { public void testDefinesAndLaunchesNamedJob() throws Exception {
this.context = new AnnotationConfigApplicationContext(); this.context = new AnnotationConfigApplicationContext();
EnvironmentTestUtils.addEnvironment(this.context, EnvironmentTestUtils.addEnvironment(this.context,
...@@ -153,7 +149,6 @@ public class BatchAutoConfigurationTests { ...@@ -153,7 +149,6 @@ public class BatchAutoConfigurationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void testDefinesAndLaunchesLocalJob() throws Exception { public void testDefinesAndLaunchesLocalJob() throws Exception {
this.context = new AnnotationConfigApplicationContext(); this.context = new AnnotationConfigApplicationContext();
EnvironmentTestUtils.addEnvironment(this.context, EnvironmentTestUtils.addEnvironment(this.context,
...@@ -169,7 +164,6 @@ public class BatchAutoConfigurationTests { ...@@ -169,7 +164,6 @@ public class BatchAutoConfigurationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void testDisableLaunchesJob() throws Exception { public void testDisableLaunchesJob() throws Exception {
this.context = new AnnotationConfigApplicationContext(); this.context = new AnnotationConfigApplicationContext();
EnvironmentTestUtils.addEnvironment(this.context, EnvironmentTestUtils.addEnvironment(this.context,
...@@ -183,7 +177,6 @@ public class BatchAutoConfigurationTests { ...@@ -183,7 +177,6 @@ public class BatchAutoConfigurationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void testDisableSchemaLoader() throws Exception { public void testDisableSchemaLoader() throws Exception {
this.context = new AnnotationConfigApplicationContext(); this.context = new AnnotationConfigApplicationContext();
EnvironmentTestUtils.addEnvironment(this.context, EnvironmentTestUtils.addEnvironment(this.context,
...@@ -200,7 +193,6 @@ public class BatchAutoConfigurationTests { ...@@ -200,7 +193,6 @@ public class BatchAutoConfigurationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void testUsingJpa() throws Exception { public void testUsingJpa() throws Exception {
this.context = new AnnotationConfigApplicationContext(); this.context = new AnnotationConfigApplicationContext();
// The order is very important here: DataSource -> Hibernate -> Batch // The order is very important here: DataSource -> Hibernate -> Batch
......
...@@ -63,7 +63,6 @@ public class SampleIntegrationTests { ...@@ -63,7 +63,6 @@ public class SampleIntegrationTests {
} }
@Test @Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void jobSample() throws Exception { public void jobSample() throws Exception {
String output = this.cli.run("job.groovy", "foo=bar"); String output = this.cli.run("job.groovy", "foo=bar");
assertTrue("Wrong output: " + output, assertTrue("Wrong output: " + output,
...@@ -82,7 +81,6 @@ public class SampleIntegrationTests { ...@@ -82,7 +81,6 @@ public class SampleIntegrationTests {
} }
@Test @Test
@Ignore("Spring Batch is incompatible with Spring Framework 4.2")
public void jobWebSample() throws Exception { public void jobWebSample() throws Exception {
String output = this.cli.run("job.groovy", "web.groovy", "foo=bar"); String output = this.cli.run("job.groovy", "web.groovy", "foo=bar");
assertTrue("Wrong output: " + output, assertTrue("Wrong output: " + output,
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<spring.version>4.2.0.BUILD-SNAPSHOT</spring.version> <spring.version>4.2.0.BUILD-SNAPSHOT</spring.version>
<spring-amqp.version>1.4.4.RELEASE</spring-amqp.version> <spring-amqp.version>1.4.4.RELEASE</spring-amqp.version>
<spring-cloud-connectors.version>1.1.1.RELEASE</spring-cloud-connectors.version> <spring-cloud-connectors.version>1.1.1.RELEASE</spring-cloud-connectors.version>
<spring-batch.version>3.0.3.RELEASE</spring-batch.version> <spring-batch.version>3.0.4.BUILD-SNAPSHOT</spring-batch.version>
<spring-data-releasetrain.version>Fowler-RC1</spring-data-releasetrain.version> <spring-data-releasetrain.version>Fowler-RC1</spring-data-releasetrain.version>
<spring-hateoas.version>0.16.0.RELEASE</spring-hateoas.version> <spring-hateoas.version>0.16.0.RELEASE</spring-hateoas.version>
<spring-integration.version>4.1.3.RELEASE</spring-integration.version> <spring-integration.version>4.1.3.RELEASE</spring-integration.version>
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
package sample.batch; package sample.batch;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
...@@ -25,7 +24,6 @@ import org.springframework.boot.test.OutputCapture; ...@@ -25,7 +24,6 @@ import org.springframework.boot.test.OutputCapture;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public class SampleBatchApplicationTests { public class SampleBatchApplicationTests {
@Rule @Rule
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment