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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user