File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
driver/src/test/java/org/neo4j/driver/util Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 18
18
*/
19
19
package org .neo4j .driver .util ;
20
20
21
+ import org .junit .jupiter .api .extension .AfterAllCallback ;
21
22
import org .junit .jupiter .api .extension .BeforeEachCallback ;
22
23
import org .junit .jupiter .api .extension .ExtensionContext ;
23
24
41
42
import static org .neo4j .driver .util .Neo4jSettings .DEFAULT_TLS_CERT_PATH ;
42
43
import static org .neo4j .driver .util .Neo4jSettings .DEFAULT_TLS_KEY_PATH ;
43
44
44
- public class DatabaseExtension implements BeforeEachCallback
45
+ public class DatabaseExtension implements BeforeEachCallback , AfterAllCallback
45
46
{
46
47
static final String TEST_RESOURCE_FOLDER_PATH = "src/test/resources" ;
47
48
@@ -66,6 +67,15 @@ public void beforeEach( ExtensionContext context ) throws Exception
66
67
TestUtil .cleanDb ( driver () );
67
68
}
68
69
70
+ @ Override
71
+ public void afterAll ( ExtensionContext context )
72
+ {
73
+ if ( runner != null )
74
+ {
75
+ runner .stopNeo4j ();
76
+ }
77
+ }
78
+
69
79
public Driver driver ()
70
80
{
71
81
return runner .driver ();
You can’t perform that action at this time.
0 commit comments