File tree 4 files changed +17
-0
lines changed
src/test/java/org/neo4j/driver/integration 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 106
106
<artifactId >neo4j</artifactId >
107
107
<scope >test</scope >
108
108
</dependency >
109
+ <dependency >
110
+ <groupId >io.github.nettyplus</groupId >
111
+ <artifactId >netty-leak-detector-junit-extension</artifactId >
112
+ <scope >test</scope >
113
+ </dependency >
109
114
<dependency >
110
115
<groupId >commons-codec</groupId >
111
116
<artifactId >commons-codec</artifactId >
Original file line number Diff line number Diff line change 29
29
import static org .neo4j .driver .internal .logging .DevNullLogging .DEV_NULL_LOGGING ;
30
30
import static org .neo4j .driver .testutil .TestUtil .assertNoCircularReferences ;
31
31
32
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
32
33
import java .time .Clock ;
33
34
import java .util .List ;
34
35
import java .util .Map ;
35
36
import java .util .function .Consumer ;
36
37
import java .util .stream .LongStream ;
37
38
import org .junit .jupiter .api .Test ;
39
+ import org .junit .jupiter .api .extension .ExtendWith ;
38
40
import org .junit .jupiter .api .extension .RegisterExtension ;
39
41
import org .junit .jupiter .params .ParameterizedTest ;
40
42
import org .junit .jupiter .params .provider .ValueSource ;
53
55
import org .neo4j .driver .testutil .TestUtil ;
54
56
55
57
@ ParallelizableIT
58
+ @ ExtendWith (NettyLeakDetectorExtension .class )
56
59
class TransactionIT {
57
60
@ RegisterExtension
58
61
static final SessionExtension session = new SessionExtension ();
Original file line number Diff line number Diff line change 38
38
import static org .neo4j .driver .testutil .TestUtil .assertNoCircularReferences ;
39
39
import static org .neo4j .driver .testutil .TestUtil .await ;
40
40
41
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
41
42
import java .io .IOException ;
42
43
import java .util .Arrays ;
43
44
import java .util .Collections ;
48
49
import org .junit .jupiter .api .AfterEach ;
49
50
import org .junit .jupiter .api .BeforeEach ;
50
51
import org .junit .jupiter .api .Test ;
52
+ import org .junit .jupiter .api .extension .ExtendWith ;
51
53
import org .junit .jupiter .api .extension .RegisterExtension ;
52
54
import org .neo4j .driver .Query ;
53
55
import org .neo4j .driver .async .AsyncSession ;
60
62
import org .neo4j .driver .testutil .ParallelizableIT ;
61
63
62
64
@ ParallelizableIT
65
+ @ ExtendWith (NettyLeakDetectorExtension .class )
63
66
class AsyncTransactionIT {
64
67
@ RegisterExtension
65
68
static final DatabaseExtension neo4j = new DatabaseExtension ();
Original file line number Diff line number Diff line change 45
45
<hamcrest .version>2.2</hamcrest .version>
46
46
<mockito-core .version>5.8.0</mockito-core .version>
47
47
<junit .version>5.10.2</junit .version>
48
+ <netty-leak-detector .version>0.0.4</netty-leak-detector .version>
48
49
<!-- supply a newer version than the one supplied by the reactive-streams 1.0.4 -->
49
50
<testng .version>7.9.0</testng .version>
50
51
<jarchivelib .version>1.2.0</jarchivelib .version>
219
220
<type >pom</type >
220
221
<scope >import</scope >
221
222
</dependency >
223
+ <dependency >
224
+ <groupId >io.github.nettyplus</groupId >
225
+ <artifactId >netty-leak-detector-junit-extension</artifactId >
226
+ <version >${netty-leak-detector.version} </version >
227
+ </dependency >
222
228
223
229
<!-- Testkit Backend Dependencies -->
224
230
<dependency >
You can’t perform that action at this time.
0 commit comments