OPEN - BATCH-654: Transactions when commit fails

reverted the previous solution, it wouldn't really help
This commit is contained in:
robokaso
2008-06-06 14:06:38 +00:00
parent 143b1e6be0
commit c2c33fc00b
2 changed files with 6 additions and 20 deletions

View File

@@ -654,9 +654,9 @@ public class ItemOrientedStepTests extends TestCase {
catch (RuntimeException ex) {
assertEquals(BatchStatus.UNKNOWN, stepExecution.getStatus());
String msg = stepExecution.getExitStatus().getExitDescription();
assertTrue(msg.contains("Fatal error detected during commit - the execution is in undefined state and restart will not be possible"));
assertTrue(msg.contains("Fatal error detected during commit"));
msg = ex.getMessage();
assertTrue(msg.contains("Fatal error detected during commit - the execution is in undefined state and restart will not be possible"));
assertTrue(msg.contains("Fatal error detected during commit"));
// The original rollback was caused by this one:
assertEquals("Bar", ex.getCause().getMessage());
}