SocketEchoTest Class — netty Architecture
Architecture documentation for the SocketEchoTest class in SocketEchoTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD baace803_1db9_4f73_c5e1_915131f09bda["SocketEchoTest"] 6407e4ab_9243_85a6_d137_db3483b867e8["SocketEchoTest.java"] baace803_1db9_4f73_c5e1_915131f09bda -->|defined in| 6407e4ab_9243_85a6_d137_db3483b867e8 7249bb7d_5a4e_8e94_7258_f5d74a33f710["createGroup()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 7249bb7d_5a4e_8e94_7258_f5d74a33f710 e649c99f_a6b6_1472_3e29_e5f5941664d1["destroyGroup()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| e649c99f_a6b6_1472_3e29_e5f5941664d1 60bad4d4_1d6a_4ede_279e_36912a59e59c["testSimpleEcho()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 60bad4d4_1d6a_4ede_279e_36912a59e59c 6ae3df78_c535_6786_cdeb_ce17fe95e974["testSimpleEchoNotAutoRead()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 6ae3df78_c535_6786_cdeb_ce17fe95e974 3b653a8c_db18_0e9d_ae38_f7eb220a1b30["testSimpleEchoWithAdditionalExecutor()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 3b653a8c_db18_0e9d_ae38_f7eb220a1b30 20f6b432_3022_f214_ad88_04a1f170dec2["testSimpleEchoWithAdditionalExecutorNotAutoRead()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 20f6b432_3022_f214_ad88_04a1f170dec2 5d836a97_2749_1f1c_a661_ed558f01fc9c["testSimpleEchoWithVoidPromise()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 5d836a97_2749_1f1c_a661_ed558f01fc9c 5d0e12c3_26c7_3c99_001c_dbca00868806["testSimpleEchoWithVoidPromiseNotAutoRead()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 5d0e12c3_26c7_3c99_001c_dbca00868806 6a974f1e_1d86_efff_c587_1b857f7040ab["testSimpleEchoWithAdditionalExecutorAndVoidPromise()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| 6a974f1e_1d86_efff_c587_1b857f7040ab dff7703c_2c14_b3fa_56b1_2ca87c60f4fe["testSimpleEcho0()"] baace803_1db9_4f73_c5e1_915131f09bda -->|method| dff7703c_2c14_b3fa_56b1_2ca87c60f4fe
Relationship Graph
Source Code
testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketEchoTest.java lines 45–312
public class SocketEchoTest extends AbstractSocketTest {
private static final Random random = new Random();
static final byte[] data = new byte[1048576];
private static EventExecutorGroup group;
static {
random.nextBytes(data);
}
@BeforeAll
public static void createGroup() {
group = new DefaultEventExecutorGroup(2);
}
@AfterAll
public static void destroyGroup() throws Exception {
group.shutdownGracefully().sync();
}
@Test
@Timeout(value = 30000, unit = TimeUnit.MILLISECONDS)
public void testSimpleEcho(TestInfo testInfo) throws Throwable {
run(testInfo, new Runner<ServerBootstrap, Bootstrap>() {
@Override
public void run(ServerBootstrap serverBootstrap, Bootstrap bootstrap) throws Throwable {
testSimpleEcho(serverBootstrap, bootstrap);
}
});
}
public void testSimpleEcho(ServerBootstrap sb, Bootstrap cb) throws Throwable {
testSimpleEcho0(sb, cb, false, false, true);
}
@Test
@Timeout(value = 30000, unit = TimeUnit.MILLISECONDS)
public void testSimpleEchoNotAutoRead(TestInfo testInfo) throws Throwable {
run(testInfo, new Runner<ServerBootstrap, Bootstrap>() {
@Override
public void run(ServerBootstrap sb1, Bootstrap cb1) throws Throwable {
testSimpleEchoNotAutoRead(sb1, cb1);
}
});
}
public void testSimpleEchoNotAutoRead(ServerBootstrap sb, Bootstrap cb) throws Throwable {
testSimpleEcho0(sb, cb, false, false, false);
}
@Test
public void testSimpleEchoWithAdditionalExecutor(TestInfo testInfo) throws Throwable {
run(testInfo, new Runner<ServerBootstrap, Bootstrap>() {
@Override
public void run(ServerBootstrap sb1, Bootstrap cb1) throws Throwable {
testSimpleEchoWithAdditionalExecutor(sb1, cb1);
}
});
}
public void testSimpleEchoWithAdditionalExecutor(ServerBootstrap sb, Bootstrap cb) throws Throwable {
testSimpleEcho0(sb, cb, true, false, true);
}
@Test
public void testSimpleEchoWithAdditionalExecutorNotAutoRead(TestInfo testInfo) throws Throwable {
run(testInfo, new Runner<ServerBootstrap, Bootstrap>() {
@Override
public void run(ServerBootstrap sb1, Bootstrap cb1) throws Throwable {
testSimpleEchoWithAdditionalExecutorNotAutoRead(sb1, cb1);
}
});
}
public void testSimpleEchoWithAdditionalExecutorNotAutoRead(ServerBootstrap sb, Bootstrap cb) throws Throwable {
testSimpleEcho0(sb, cb, true, false, false);
}
@Test
public void testSimpleEchoWithVoidPromise(TestInfo testInfo) throws Throwable {
Source
Frequently Asked Questions
What is the SocketEchoTest class?
SocketEchoTest is a class in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketEchoTest.java.
Where is SocketEchoTest defined?
SocketEchoTest is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketEchoTest.java at line 45.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free