1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.testsuite.transport;
17
18 import io.netty.channel.Channel;
19 import io.netty.channel.EventLoopGroup;
20 import io.netty.channel.ServerChannel;
21 import io.netty.channel.nio.NioEventLoopGroup;
22 import io.netty.channel.socket.nio.NioServerSocketChannel;
23 import io.netty.channel.socket.nio.NioSocketChannel;
24
25 public class NioEventLoopTest extends AbstractSingleThreadEventLoopTest {
26
27 @Override
28 protected boolean supportsChannelIteration() {
29 return true;
30 }
31
32 @Override
33 protected EventLoopGroup newEventLoopGroup() {
34 return new NioEventLoopGroup();
35 }
36
37 @Override
38 protected Channel newChannel() {
39 return new NioSocketChannel();
40 }
41
42 @Override
43 protected Class<? extends ServerChannel> serverChannelClass() {
44 return NioServerSocketChannel.class;
45 }
46 }