Ignore Batch tests that use JDBC as they don’t work with Spring 4.2

Spring Framework’s ParamterizedRowMapper has been deprecated since
3.1 and has been removed in 4.2. Spring Batch currently relies on
ParameterizedRowMapper, making it incompatible with 4.2. To allow us to
build successfully against 4.2, this commit ignores Spring Boot’s tests
that use Spring Batch’s JDBC support.

See gh-2575
This commit is contained in:
Andy Wilkinson
2015-03-25 10:45:57 +00:00
parent 7a73c5883f
commit bc99ad2120
3 changed files with 12 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ public class SampleIntegrationTests {
}
@Test
@Ignore("Due to the removal of ParameterizedRowMapper, Spring Batch is incompatible with Spring Framework 4.2")
public void jobSample() throws Exception {
String output = this.cli.run("job.groovy", "foo=bar");
assertTrue("Wrong output: " + output,
@@ -81,6 +82,7 @@ public class SampleIntegrationTests {
}
@Test
@Ignore("Spring Batch is incompatible with Spring Framework 4.2")
public void jobWebSample() throws Exception {
String output = this.cli.run("job.groovy", "web.groovy", "foo=bar");
assertTrue("Wrong output: " + output,