Skip to content

Commit ec161f8

Browse files
committed
Reload test context before each method in AsynchronousTests
Resolves #4095
1 parent 851bf70 commit ec161f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-batch-infrastructure/src/test/java/org/springframework/batch/repeat/jms/AsynchronousTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
4141
import static org.junit.jupiter.api.Assertions.assertTrue;
4242

4343
@SpringJUnitConfig(locations = "/org/springframework/batch/jms/jms-context.xml")
44-
@DirtiesContext
44+
@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD)
4545
class AsynchronousTests {
4646

4747
@Autowired

0 commit comments

Comments
 (0)