From bea04ce1860e07314d9c60fc89c04b9d3f336408 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 5 Feb 2013 15:33:00 +0000 Subject: [PATCH] More defensive StepScope schlepping in tests --- .../org/springframework/batch/core/scope/StepScopeTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/scope/StepScopeTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/scope/StepScopeTests.java index 0e97fe6f5..4bd8f8de7 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/scope/StepScopeTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/scope/StepScopeTests.java @@ -51,12 +51,13 @@ public class StepScopeTests { @Before public void setUp() throws Exception { + StepSynchronizationManager.release(); context = StepSynchronizationManager.register(stepExecution); } @After public void tearDown() throws Exception { - StepSynchronizationManager.release(); + StepSynchronizationManager.close(); } @Test