Skip to content

Commit 32a1cdf

Browse files
committed
Polish "Use dedicated method to turn off authentication"
See gh-18538
1 parent 04a01a4 commit 32a1cdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestPropertiesIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
class DataNeo4jTestPropertiesIntegrationTests {
4343

4444
@Container
45-
static final Neo4jContainer<?> neo4j = new Neo4jContainer<>().withAdminPassword(null);
45+
static final Neo4jContainer<?> neo4j = new Neo4jContainer<>().withoutAuthentication();
4646

4747
@Autowired
4848
private Environment environment;

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
class DataNeo4jTestWithIncludeFilterIntegrationTests {
4444

4545
@Container
46-
static final Neo4jContainer<?> neo4j = new Neo4jContainer<>().withAdminPassword(null);
46+
static final Neo4jContainer<?> neo4j = new Neo4jContainer<>().withoutAuthentication();
4747

4848
@Autowired
4949
private ExampleService service;

0 commit comments

Comments
 (0)