File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed
src/test/java/org/asynchttpclient Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 9696 <scope >test</scope >
9797 </dependency >
9898
99+ <dependency >
100+ <groupId >io.github.nettyplus</groupId >
101+ <artifactId >netty-leak-detector-junit-extension</artifactId >
102+ <scope >test</scope >
103+ </dependency >
104+
99105 <dependency >
100106 <groupId >org.eclipse.jetty</groupId >
101107 <artifactId >jetty-servlet</artifactId >
Original file line number Diff line number Diff line change 1515 */
1616package org .asynchttpclient ;
1717
18+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
1819import org .asynchttpclient .test .EchoHandler ;
1920import org .eclipse .jetty .server .Server ;
2021import org .eclipse .jetty .server .ServerConnector ;
2425import org .junit .jupiter .api .BeforeAll ;
2526import org .junit .jupiter .api .BeforeEach ;
2627import org .junit .jupiter .api .TestInstance ;
28+ import org .junit .jupiter .api .extension .ExtendWith ;
2729import org .slf4j .Logger ;
2830import org .slf4j .LoggerFactory ;
2931
3032import static org .asynchttpclient .test .TestUtils .addHttpConnector ;
3133
3234@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
35+ @ ExtendWith (NettyLeakDetectorExtension .class )
3336public abstract class AbstractBasicTest {
3437 protected static final Logger logger = LoggerFactory .getLogger (AbstractBasicTest .class );
3538 protected static final int TIMEOUT = 30 ;
Original file line number Diff line number Diff line change 1616package org .asynchttpclient .netty ;
1717
1818import io .github .artsok .RepeatedIfExceptionsTest ;
19+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
1920import org .asynchttpclient .AsyncHttpClient ;
2021import org .asynchttpclient .DefaultAsyncHttpClient ;
2122import org .asynchttpclient .DefaultAsyncHttpClientConfig ;
2223import org .asynchttpclient .RequestBuilder ;
2324import org .junit .jupiter .api .BeforeEach ;
25+ import org .junit .jupiter .api .extension .ExtendWith ;
2426
2527import java .io .IOException ;
2628import java .io .InputStream ;
3436
3537import static org .junit .jupiter .api .Assertions .assertInstanceOf ;
3638
39+ @ ExtendWith (NettyLeakDetectorExtension .class )
3740public class NettyConnectionResetByPeerTest {
3841
3942 private String resettingServerAddress ;
Original file line number Diff line number Diff line change 1515 */
1616package org .asynchttpclient .testserver ;
1717
18+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
1819import org .asynchttpclient .AsyncHttpClient ;
1920import org .asynchttpclient .AsyncHttpClientConfig ;
2021import org .asynchttpclient .DefaultAsyncHttpClientConfig ;
22+ import org .junit .jupiter .api .extension .ExtendWith ;
2123import org .slf4j .Logger ;
2224import org .slf4j .LoggerFactory ;
2325
2426import static org .asynchttpclient .Dsl .asyncHttpClient ;
2527import static org .asynchttpclient .Dsl .config ;
2628
29+ @ ExtendWith (NettyLeakDetectorExtension .class )
2730public abstract class HttpTest {
2831
2932 protected static final String COMPLETED_EVENT = "Completed" ;
Original file line number Diff line number Diff line change 112112 <type >pom</type >
113113 <scope >import</scope >
114114 </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 >
115120 </dependencies >
116121 </dependencyManagement >
117122
You can’t perform that action at this time.
0 commit comments