File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
driver/src/test/java/org/neo4j/driver/util Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1818 */
1919package org .neo4j .driver .util ;
2020
21+ import org .junit .jupiter .api .extension .AfterAllCallback ;
2122import org .junit .jupiter .api .extension .BeforeEachCallback ;
2223import org .junit .jupiter .api .extension .ExtensionContext ;
2324
4142import static org .neo4j .driver .util .Neo4jSettings .DEFAULT_TLS_CERT_PATH ;
4243import static org .neo4j .driver .util .Neo4jSettings .DEFAULT_TLS_KEY_PATH ;
4344
44- public class DatabaseExtension implements BeforeEachCallback
45+ public class DatabaseExtension implements BeforeEachCallback , AfterAllCallback
4546{
4647 static final String TEST_RESOURCE_FOLDER_PATH = "src/test/resources" ;
4748
@@ -66,6 +67,12 @@ public void beforeEach( ExtensionContext context ) throws Exception
6667 TestUtil .cleanDb ( driver () );
6768 }
6869
70+ @ Override
71+ public void afterAll ( ExtensionContext context )
72+ {
73+ runner .stopNeo4j ();
74+ }
75+
6976 public Driver driver ()
7077 {
7178 return runner .driver ();
You can’t perform that action at this time.
0 commit comments