Skip to content

Commit 938e0d7

Browse files
committed
Remove unused code in DecisionStepTests
(cherry picked from commit 287eace)
1 parent 9002a54 commit 938e0d7

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,23 @@
1717

1818
import java.util.List;
1919
import java.util.Properties;
20+
2021
import javax.batch.api.Decider;
2122
import javax.batch.runtime.BatchRuntime;
2223
import javax.batch.runtime.BatchStatus;
2324
import javax.batch.runtime.JobExecution;
2425
import javax.batch.runtime.StepExecution;
2526

26-
import org.junit.Before;
2727
import org.junit.Test;
2828

29-
import org.springframework.batch.core.explore.JobExplorer;
3029
import org.springframework.batch.core.jsr.AbstractJsrTestCase;
31-
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
32-
import org.springframework.context.ApplicationContext;
33-
import org.springframework.context.support.GenericXmlApplicationContext;
3430
import org.springframework.test.util.ReflectionTestUtils;
3531
import org.springframework.util.Assert;
3632

3733
import static org.junit.Assert.assertEquals;
3834

3935
public class DecisionStepTests extends AbstractJsrTestCase {
4036

41-
private static ApplicationContext baseContext;
42-
43-
private JobExplorer jobExplorer;
44-
45-
@Before
46-
public void setUp() {
47-
StepExecutionCountingDecider.previousStepCount = 0;
48-
49-
if(jobExplorer == null) {
50-
baseContext = new GenericXmlApplicationContext("jsrBaseContext.xml");
51-
52-
baseContext.getAutowireCapableBeanFactory().autowireBeanProperties(this,
53-
AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
54-
}
55-
}
56-
57-
public void setJobExplorer(JobExplorer jobExplorer) {
58-
this.jobExplorer = jobExplorer;
59-
}
60-
6137
@Test
6238
public void testDecisionAsFirstStepOfJob() throws Exception {
6339
JobExecution execution = runJob("DecisionStepTests-decisionAsFirstStep-context", new Properties(), 10000L);

0 commit comments

Comments
 (0)