Debugging statements for broken unit test (test only fails in CI environment)

This commit is contained in:
Michael Minella
2015-04-14 13:53:05 -04:00
parent 2cdadea4b3
commit d42692cc7a
2 changed files with 8 additions and 1 deletions

View File

@@ -155,6 +155,10 @@ subprojects { subproject ->
append = false
destinationFile = file("$buildDir/jacoco.exec")
}
testLogging {
showStandardStreams = true
}
}
task sourcesJar(type: Jar) {

View File

@@ -84,7 +84,10 @@ public class JdbcPagingItemReaderAsyncTests {
@Before
public void init() {
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
System.out.println("********* dataSource = " + dataSource);
System.out.println("********* maxId = " + maxId);
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
System.out.println("********* jdbcTemplate = " + jdbcTemplate);
maxId = jdbcTemplate.queryForObject("SELECT MAX(ID) from T_FOOS", Integer.class);
for (int i = ITEM_COUNT; i > maxId; i--) {
jdbcTemplate.update("INSERT into T_FOOS (ID,NAME,VALUE) values (?, ?, ?)", i, "foo" + i, i);