BATCH-2242: Stopping a job in STARTING state throws OptimisticLockingFailureException
This commit is contained in:
committed by
Michael Minella
parent
b8238908df
commit
8b26504db1
@@ -16,7 +16,12 @@
|
||||
|
||||
package org.springframework.batch.core.repository.dao;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.batch.core.BatchStatus;
|
||||
import org.springframework.batch.core.Job;
|
||||
import org.springframework.batch.core.JobExecution;
|
||||
@@ -32,10 +37,6 @@ import org.springframework.batch.repeat.RepeatStatus;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class OptimisticLockingFailureTests {
|
||||
@Test
|
||||
public void testAsyncStopOfStartingJob() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user