Skip to content

Commit

Permalink
use NettyLeakDetectorExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Feb 25, 2024
1 parent 559b5ef commit 57a7654
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ ext {
assertJVersion = '3.25.3'
awaitilityVersion = '4.2.0'
hoverflyJavaVersion = '0.16.1'
nettyLeakDetectorJunitExtensionVersion = "0.0.1"
tomcatVersion = '9.0.86'
boringSslVersion = '2.0.63.Final'
junitVersion = '5.10.2'
Expand Down
3 changes: 2 additions & 1 deletion reactor-netty-http/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2023 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2020-2024 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -132,6 +132,7 @@ dependencies {

testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "io.specto:hoverfly-java-junit5:$hoverflyJavaVersion"
testImplementation "io.github.nettyplus:netty-leak-detector-junit-extension:$nettyLeakDetectorJunitExtensionVersion"
testImplementation "org.apache.tomcat.embed:tomcat-embed-core:$tomcatVersion"
testImplementation "io.projectreactor:reactor-test:$testAddonVersion"
testImplementation "org.assertj:assertj-core:$assertJVersion"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2022 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2021-2024 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,7 +15,9 @@
*/
package reactor.netty;

import io.github.nettyplus.leakdetector.junit.NettyLeakDetectorExtension;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.provider.Arguments;
import reactor.netty.http.HttpProtocol;
import reactor.netty.http.client.HttpClient;
Expand All @@ -34,6 +36,7 @@
* @author Violeta Georgieva
* @since 1.0.3
*/
@ExtendWith(NettyLeakDetectorExtension.class)
public class BaseHttpTest {

protected DisposableServer disposableServer;
Expand Down

0 comments on commit 57a7654

Please sign in to comment.