File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
client/src/test/java/org/asynchttpclient/netty Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ package org .asynchttpclient .netty ;
2
+
3
+ import io .netty .channel .epoll .Epoll ;
4
+ import io .netty .channel .kqueue .KQueue ;
5
+ import org .junit .jupiter .api .Test ;
6
+ import org .junit .jupiter .api .condition .EnabledOnOs ;
7
+ import org .junit .jupiter .api .condition .OS ;
8
+
9
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
10
+
11
+ public class NettyTest {
12
+ @ Test
13
+ @ EnabledOnOs (value = OS .LINUX )
14
+ public void epollIsAvailableOnLinux () {
15
+ assertTrue (Epoll .isAvailable ());
16
+ }
17
+
18
+ @ Test
19
+ @ EnabledOnOs (value = OS .MAC )
20
+ public void kqueueIsAvailableOnMac () {
21
+ assertTrue (KQueue .isAvailable ());
22
+ }
23
+ }
Original file line number Diff line number Diff line change 178
178
<optional >true</optional >
179
179
</dependency >
180
180
181
+ <dependency >
182
+ <groupId >io.netty</groupId >
183
+ <artifactId >netty-transport-native-epoll</artifactId >
184
+ <classifier >linux-aarch_64</classifier >
185
+ <version >${netty.version} </version >
186
+ <optional >true</optional >
187
+ </dependency >
188
+
181
189
<dependency >
182
190
<groupId >io.netty</groupId >
183
191
<artifactId >netty-transport-native-kqueue</artifactId >
186
194
<optional >true</optional >
187
195
</dependency >
188
196
197
+ <dependency >
198
+ <groupId >io.netty</groupId >
199
+ <artifactId >netty-transport-native-kqueue</artifactId >
200
+ <classifier >osx-aarch_64</classifier >
201
+ <version >${netty.version} </version >
202
+ <optional >true</optional >
203
+ </dependency >
204
+
189
205
<dependency >
190
206
<groupId >io.netty.incubator</groupId >
191
207
<artifactId >netty-incubator-transport-native-io_uring</artifactId >
You can’t perform that action at this time.
0 commit comments