File tree 4 files changed +17
-0
lines changed
src/test/java/org/asynchttpclient
4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 96
96
<scope >test</scope >
97
97
</dependency >
98
98
99
+ <dependency >
100
+ <groupId >io.github.nettyplus</groupId >
101
+ <artifactId >netty-leak-detector-junit-extension</artifactId >
102
+ <scope >test</scope >
103
+ </dependency >
104
+
99
105
<dependency >
100
106
<groupId >org.eclipse.jetty</groupId >
101
107
<artifactId >jetty-servlet</artifactId >
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .asynchttpclient ;
17
17
18
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
18
19
import org .asynchttpclient .test .EchoHandler ;
19
20
import org .eclipse .jetty .server .Server ;
20
21
import org .eclipse .jetty .server .ServerConnector ;
24
25
import org .junit .jupiter .api .BeforeAll ;
25
26
import org .junit .jupiter .api .BeforeEach ;
26
27
import org .junit .jupiter .api .TestInstance ;
28
+ import org .junit .jupiter .api .extension .ExtendWith ;
27
29
import org .slf4j .Logger ;
28
30
import org .slf4j .LoggerFactory ;
29
31
30
32
import static org .asynchttpclient .test .TestUtils .addHttpConnector ;
31
33
32
34
@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
35
+ @ ExtendWith (NettyLeakDetectorExtension .class )
33
36
public abstract class AbstractBasicTest {
34
37
protected static final Logger logger = LoggerFactory .getLogger (AbstractBasicTest .class );
35
38
protected static final int TIMEOUT = 30 ;
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .asynchttpclient .testserver ;
17
17
18
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
18
19
import org .asynchttpclient .AsyncHttpClient ;
19
20
import org .asynchttpclient .AsyncHttpClientConfig ;
20
21
import org .asynchttpclient .DefaultAsyncHttpClientConfig ;
22
+ import org .junit .jupiter .api .extension .ExtendWith ;
21
23
import org .slf4j .Logger ;
22
24
import org .slf4j .LoggerFactory ;
23
25
24
26
import static org .asynchttpclient .Dsl .asyncHttpClient ;
25
27
import static org .asynchttpclient .Dsl .config ;
26
28
29
+ @ ExtendWith (NettyLeakDetectorExtension .class )
27
30
public abstract class HttpTest {
28
31
29
32
protected static final String COMPLETED_EVENT = "Completed" ;
Original file line number Diff line number Diff line change 112
112
<type >pom</type >
113
113
<scope >import</scope >
114
114
</dependency >
115
+ <dependency >
116
+ <groupId >io.github.nettyplus</groupId >
117
+ <artifactId >netty-leak-detector-junit-extension</artifactId >
118
+ <version >0.0.2</version >
119
+ </dependency >
115
120
</dependencies >
116
121
</dependencyManagement >
117
122
You can’t perform that action at this time.
0 commit comments