diff --git a/client/src/test/java/org/asynchttpclient/netty/NettyTest.java b/client/src/test/java/org/asynchttpclient/netty/NettyTest.java new file mode 100644 index 000000000..05e82708d --- /dev/null +++ b/client/src/test/java/org/asynchttpclient/netty/NettyTest.java @@ -0,0 +1,23 @@ +package org.asynchttpclient.netty; + +import io.netty.channel.epoll.Epoll; +import io.netty.channel.kqueue.KQueue; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledOnOs; +import org.junit.jupiter.api.condition.OS; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +public class NettyTest { + @Test + @EnabledOnOs(value = OS.LINUX) + public void epollIsAvailableOnLinux() { + assertTrue(Epoll.isAvailable()); + } + + @Test + @EnabledOnOs(value = OS.MAC) + public void kqueueIsAvailableOnMac() { + assertTrue(KQueue.isAvailable()); + } +} diff --git a/pom.xml b/pom.xml index e4aeb5388..1fcf89b5d 100644 --- a/pom.xml +++ b/pom.xml @@ -178,6 +178,14 @@ true + + io.netty + netty-transport-native-epoll + linux-aarch_64 + ${netty.version} + true + + io.netty netty-transport-native-kqueue @@ -186,6 +194,14 @@ true + + io.netty + netty-transport-native-kqueue + osx-aarch_64 + ${netty.version} + true + + io.netty.incubator netty-incubator-transport-native-io_uring