https://github.com/nettyplus/netty-leak-detector-junit-extension
Netty leak detection ⭐️
https://github.com/nettyplus/netty-leak-detector-junit-extension
java junit junit-extension junit5 netty
Last synced: about 1 month ago
JSON representation
Netty leak detection ⭐️
- Host: GitHub
- URL: https://github.com/nettyplus/netty-leak-detector-junit-extension
- Owner: nettyplus
- License: apache-2.0
- Created: 2024-02-17T17:30:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-11T04:27:57.000Z (about 1 month ago)
- Last Synced: 2025-04-11T05:32:50.602Z (about 1 month ago)
- Topics: java, junit, junit-extension, junit5, netty
- Language: Java
- Homepage:
- Size: 231 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netty-leak-detector-junit-extension [](https://search.maven.org/artifact/io.github.nettyplus/netty-leak-detector-junit-extension)
# About this library
This JUnit 5 [extension](https://junit.org/junit5/docs/current/user-guide/#extensions) detects resource leaks by registering a Netty [LeakListener](https://netty.io/4.1/api/io/netty/util/ResourceLeakDetector.LeakListener.html)
# Example: Java unit test
```java
import io.github.nettyplus.leakdetector.junit.NettyLeakDetectorExtension;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;@ExtendWith(NettyLeakDetectorExtension.class)
class FooTest {
@Test
void testSomething() {
// ...
}
}```
# Example: Maven pom.xml
```
io.github.nettyplus
netty-leak-detector-junit-extension
0.0.6
test```
# Projects that use this library
- [async-http-client](https://github.com/AsyncHttpClient/async-http-client)
- [kroxylicious](https://github.com/kroxylicious/kroxylicious)# Presentations
This library was discussed in the following presentations:
- 2024: [Chicago Java User Group](https://speakerdeck.com/sullis/netty-chicago-java-user-group-2024-04-17)
- 2025: [ConFoo Montreal](https://speakerdeck.com/sullis/netty-confoo-montreal-2025-02-27)