Skip to content

Commit d321806

Browse files
committed
Merge pull request #16083 from izeye
* pr/16083: Polish
2 parents 48c83b0 + 3242e89 commit d321806

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818

1919
import org.junit.ClassRule;
2020
import org.junit.Test;
21-
import org.junit.rules.TestRule;
22-
import org.junit.runner.Description;
2321
import org.junit.runner.RunWith;
24-
import org.junit.runners.model.Statement;
2522
import org.neo4j.ogm.session.Session;
2623
import org.testcontainers.containers.Neo4jContainer;
2724

@@ -50,19 +47,10 @@
5047
@DataNeo4jTest
5148
public class DataNeo4jTestIntegrationTests {
5249

50+
@ClassRule
5351
public static SkippableContainer<Neo4jContainer<?>> neo4j = new SkippableContainer<Neo4jContainer<?>>(
5452
() -> new Neo4jContainer<>().withAdminPassword(null));
5553

56-
@ClassRule
57-
public static TestRule skippableContainer = new TestRule() {
58-
59-
@Override
60-
public Statement apply(Statement base, Description description) {
61-
return neo4j.apply(base, description);
62-
}
63-
64-
};
65-
6654
@Autowired
6755
private Session session;
6856

0 commit comments

Comments
 (0)