Skip to content

Commit 9e3aeb0

Browse files
committed
Make test compatible with Junit 6 RC.
At the moment, nested classes annotated with `@TestPropertySource` seem to not (functionally) inherit the request for context refresh from the enclosing class. Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
1 parent 045a220 commit 9e3aeb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/springframework/data/neo4j/integration/imperative/RepositoryIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ public boolean isCypher5Compatible() {
697697

698698
@Nested
699699
@TestPropertySource(properties = "foo=Test")
700+
@DirtiesContext
700701
class Find extends IntegrationTestBase {
701702

702703
static Stream<Arguments> basicScrollSupportFor(@Autowired PersonRepository repository) {
@@ -1051,7 +1052,7 @@ void loadOptionalPersonWithAllConstructorWithSpelParameters(@Autowired PersonRep
10511052
}
10521053

10531054
@Test
1054-
void loadOptionalPersonWithAllConstructorWithPropertyPlacholder(@Autowired PersonRepository repository) {
1055+
void loadOptionalPersonWithAllConstructorWithPropertyPlaceholder(@Autowired PersonRepository repository) {
10551056

10561057
Optional<PersonWithAllConstructor> person = repository.getOptionalPersonViaPropertyPlaceholder();
10571058
assertThat(person).isPresent();

0 commit comments

Comments
 (0)