RESOLVED - BATCH-897: Version is not rehydrated from database in JobInstance or JobExecution

-added concurrent modification checks for JobExecution
-included version in the SQL selects (version value is loaded from db)
This commit is contained in:
robokaso
2008-11-04 12:14:26 +00:00
parent 0f7fd164be
commit 7a4caca1fd
6 changed files with 143 additions and 85 deletions

View File

@@ -16,9 +16,7 @@
package org.springframework.batch.sample;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -59,6 +57,7 @@ public class DatabaseShutdownFunctionalTests extends AbstractBatchLauncherTests
assertEquals(BatchStatus.STARTED, jobExecution.getStatus());
assertTrue(jobExecution.isRunning());
assertNotNull(jobExecution.getVersion());
jobOperator.stop(jobExecution.getId());