ChannelOptionTest Class — netty Architecture
Architecture documentation for the ChannelOptionTest class in ChannelOptionTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 76cc4be2_29c9_dce5_e6cf_40cbd9150025["ChannelOptionTest"] 67c0f423_5bc8_1ade_0698_2216a6da6aa7["ChannelOptionTest.java"] 76cc4be2_29c9_dce5_e6cf_40cbd9150025 -->|defined in| 67c0f423_5bc8_1ade_0698_2216a6da6aa7 dfff3dc1_6c84_bf2d_7b5c_4cf053893bb8["testExists()"] 76cc4be2_29c9_dce5_e6cf_40cbd9150025 -->|method| dfff3dc1_6c84_bf2d_7b5c_4cf053893bb8 36f7f56f_b029_d11e_c98f_ab4d3c88d7c6["testValueOf()"] 76cc4be2_29c9_dce5_e6cf_40cbd9150025 -->|method| 36f7f56f_b029_d11e_c98f_ab4d3c88d7c6 495fea14_7a52_cb1f_df89_db1792b42a7c["testCreateOrFail()"] 76cc4be2_29c9_dce5_e6cf_40cbd9150025 -->|method| 495fea14_7a52_cb1f_df89_db1792b42a7c
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/ChannelOptionTest.java lines 26–63
public class ChannelOptionTest {
@Test
public void testExists() {
String name = "test";
assertFalse(ChannelOption.exists(name));
ChannelOption<String> option = ChannelOption.valueOf(name);
assertTrue(ChannelOption.exists(name));
assertNotNull(option);
}
@Test
public void testValueOf() {
String name = "test1";
assertFalse(ChannelOption.exists(name));
ChannelOption<String> option = ChannelOption.valueOf(name);
ChannelOption<String> option2 = ChannelOption.valueOf(name);
assertSame(option, option2);
}
@Test
public void testCreateOrFail() {
String name = "test2";
assertFalse(ChannelOption.exists(name));
ChannelOption<String> option = ChannelOption.newInstance(name);
assertTrue(ChannelOption.exists(name));
assertNotNull(option);
try {
ChannelOption.<String>newInstance(name);
fail();
} catch (IllegalArgumentException e) {
// expected
}
}
}
Source
Frequently Asked Questions
What is the ChannelOptionTest class?
ChannelOptionTest is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/ChannelOptionTest.java.
Where is ChannelOptionTest defined?
ChannelOptionTest is defined in transport/src/test/java/io/netty/channel/ChannelOptionTest.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free