File tree 5 files changed +13
-0
lines changed
5 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ dependencies {
39
39
testImplementation ' org.mockito:mockito-junit-jupiter'
40
40
testImplementation ' org.junit.jupiter:junit-jupiter-api'
41
41
testImplementation ' org.junit.jupiter:junit-jupiter-params'
42
+ testImplementation ' io.github.nettyplus:netty-leak-detector-junit-extension:0.0.6'
42
43
43
44
testRuntimeOnly ' org.bouncycastle:bcpkix-jdk15on'
44
45
testRuntimeOnly ' ch.qos.logback:logback-classic'
Original file line number Diff line number Diff line change 18
18
19
19
import static org .assertj .core .api .Assertions .assertThat ;
20
20
21
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
21
22
import io .rsocket .Payload ;
22
23
import io .rsocket .RSocket ;
23
24
import io .rsocket .core .RSocketConnector ;
30
31
import java .util .concurrent .ThreadLocalRandom ;
31
32
import java .util .stream .Stream ;
32
33
import org .junit .jupiter .api .AfterEach ;
34
+ import org .junit .jupiter .api .extension .ExtendWith ;
33
35
import org .junit .jupiter .params .ParameterizedTest ;
34
36
import org .junit .jupiter .params .provider .Arguments ;
35
37
import org .junit .jupiter .params .provider .MethodSource ;
36
38
import reactor .core .publisher .Flux ;
37
39
import reactor .core .publisher .Mono ;
38
40
41
+ @ ExtendWith (NettyLeakDetectorExtension .class )
39
42
public class FragmentTest {
40
43
private RSocket handler ;
41
44
private CloseableChannel server ;
Original file line number Diff line number Diff line change 1
1
package io .rsocket .integration ;
2
2
3
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
3
4
import io .rsocket .Payload ;
4
5
import io .rsocket .RSocket ;
5
6
import io .rsocket .core .RSocketClient ;
16
17
import org .junit .jupiter .api .AfterEach ;
17
18
import org .junit .jupiter .api .BeforeEach ;
18
19
import org .junit .jupiter .api .Test ;
20
+ import org .junit .jupiter .api .extension .ExtendWith ;
19
21
import org .slf4j .Logger ;
20
22
import org .slf4j .LoggerFactory ;
21
23
import reactor .core .publisher .Flux ;
30
32
* Test case that reproduces the following <a
31
33
* href="https://github.com/rsocket/rsocket-java/issues/1099">GitHub Issue</a>
32
34
*/
35
+ @ ExtendWith (NettyLeakDetectorExtension .class )
33
36
public class KeepaliveTest {
34
37
35
38
private static final Logger LOG = LoggerFactory .getLogger (KeepaliveTest .class );
Original file line number Diff line number Diff line change 1
1
package io .rsocket .transport .netty ;
2
2
3
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
3
4
import io .rsocket .RSocket ;
4
5
import io .rsocket .SocketAcceptor ;
5
6
import io .rsocket .core .RSocketConnector ;
12
13
import java .net .URI ;
13
14
import java .time .Duration ;
14
15
import org .junit .jupiter .api .Test ;
16
+ import org .junit .jupiter .api .extension .ExtendWith ;
15
17
import reactor .core .publisher .Flux ;
16
18
import reactor .netty .DisposableServer ;
17
19
import reactor .netty .http .server .HttpServer ;
18
20
import reactor .test .StepVerifier ;
19
21
22
+ @ ExtendWith (NettyLeakDetectorExtension .class )
20
23
public class WebSocketTransportIntegrationTest {
21
24
22
25
@ Test
Original file line number Diff line number Diff line change 15
15
*/
16
16
package io .rsocket .transport .netty ;
17
17
18
+ import io .github .nettyplus .leakdetector .junit .NettyLeakDetectorExtension ;
18
19
import io .netty .buffer .Unpooled ;
19
20
import io .netty .channel .Channel ;
20
21
import io .netty .channel .ChannelHandlerContext ;
37
38
import java .time .Duration ;
38
39
import java .util .stream .Stream ;
39
40
import org .junit .jupiter .api .AfterEach ;
41
+ import org .junit .jupiter .api .extension .ExtendWith ;
40
42
import org .junit .jupiter .params .ParameterizedTest ;
41
43
import org .junit .jupiter .params .provider .Arguments ;
42
44
import org .junit .jupiter .params .provider .MethodSource ;
47
49
import reactor .netty .http .server .HttpServer ;
48
50
import reactor .test .StepVerifier ;
49
51
52
+ @ ExtendWith (NettyLeakDetectorExtension .class )
50
53
public class WebsocketPingPongIntegrationTest {
51
54
private static final String host = "localhost" ;
52
55
private static final int port = 8088 ;
You can’t perform that action at this time.
0 commit comments