From 287eace69fd03fc24d101f03bcbc9944b4cb717f Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Thu, 12 Nov 2020 15:39:57 +0100 Subject: [PATCH] Remove unused code in DecisionStepTests --- .../core/jsr/step/DecisionStepTests.java | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java index 956fd483f..2b4b44948 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/jsr/step/DecisionStepTests.java @@ -17,20 +17,16 @@ package org.springframework.batch.core.jsr.step; import java.util.List; import java.util.Properties; + import javax.batch.api.Decider; import javax.batch.runtime.BatchRuntime; import javax.batch.runtime.BatchStatus; import javax.batch.runtime.JobExecution; import javax.batch.runtime.StepExecution; -import org.junit.Before; import org.junit.Test; -import org.springframework.batch.core.explore.JobExplorer; import org.springframework.batch.core.jsr.AbstractJsrTestCase; -import org.springframework.beans.factory.config.AutowireCapableBeanFactory; -import org.springframework.context.ApplicationContext; -import org.springframework.context.support.GenericXmlApplicationContext; import org.springframework.test.util.ReflectionTestUtils; import org.springframework.util.Assert; @@ -38,26 +34,6 @@ import static org.junit.Assert.assertEquals; public class DecisionStepTests extends AbstractJsrTestCase { - private static ApplicationContext baseContext; - - private JobExplorer jobExplorer; - - @Before - public void setUp() { - StepExecutionCountingDecider.previousStepCount = 0; - - if(jobExplorer == null) { - baseContext = new GenericXmlApplicationContext("jsrBaseContext.xml"); - - baseContext.getAutowireCapableBeanFactory().autowireBeanProperties(this, - AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false); - } - } - - public void setJobExplorer(JobExplorer jobExplorer) { - this.jobExplorer = jobExplorer; - } - @Test public void testDecisionAsFirstStepOfJob() throws Exception { JobExecution execution = runJob("DecisionStepTests-decisionAsFirstStep-context", new Properties(), 10000L);