From e2bbd398fde3db46e4e6baabcc460b488927ea7a Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 15 Jan 2013 10:27:32 +0000 Subject: [PATCH] Defensively clear step context to prevent test failure --- .../configuration/annotation/StepScopeConfigurationTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTests.java index 0d95a5672..99ec6f695 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/annotation/StepScopeConfigurationTests.java @@ -114,6 +114,7 @@ public class StepScopeConfigurationTests { @Before public void setup() { + StepSynchronizationManager.release(); stepExecution = new StepExecution("STEP", null); StepSynchronizationManager.register(stepExecution); }