SmtpCommandTest Class — netty Architecture
Architecture documentation for the SmtpCommandTest class in SmtpCommandTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 457f4673_aa9f_b68c_61aa_dd4c06f738c2["SmtpCommandTest"] 4b249d86_d6e5_844e_413f_90cf89e9c666["SmtpCommandTest.java"] 457f4673_aa9f_b68c_61aa_dd4c06f738c2 -->|defined in| 4b249d86_d6e5_844e_413f_90cf89e9c666 c3289637_0a49_8889_9cc3_2a31462c21a0["getCommandFromCache()"] 457f4673_aa9f_b68c_61aa_dd4c06f738c2 -->|method| c3289637_0a49_8889_9cc3_2a31462c21a0 28051724_15ed_c5a5_8b21_14b62a550563["equalsIgnoreCase()"] 457f4673_aa9f_b68c_61aa_dd4c06f738c2 -->|method| 28051724_15ed_c5a5_8b21_14b62a550563 22f01389_42d6_2f02_2cf3_e842faade364["isContentExpected()"] 457f4673_aa9f_b68c_61aa_dd4c06f738c2 -->|method| 22f01389_42d6_2f02_2cf3_e842faade364
Relationship Graph
Source Code
codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpCommandTest.java lines 26–49
public class SmtpCommandTest {
@Test
public void getCommandFromCache() {
assertSame(SmtpCommand.DATA, SmtpCommand.valueOf("DATA"));
assertSame(SmtpCommand.EHLO, SmtpCommand.valueOf("EHLO"));
assertNotSame(SmtpCommand.EHLO, SmtpCommand.valueOf("ehlo"));
}
@Test
public void equalsIgnoreCase() {
assertEquals(SmtpCommand.MAIL, SmtpCommand.valueOf("mail"));
assertEquals(SmtpCommand.valueOf("test"), SmtpCommand.valueOf("TEST"));
}
@Test
public void isContentExpected() {
assertTrue(SmtpCommand.valueOf("DATA").isContentExpected());
assertTrue(SmtpCommand.valueOf("data").isContentExpected());
assertFalse(SmtpCommand.HELO.isContentExpected());
assertFalse(SmtpCommand.HELP.isContentExpected());
assertFalse(SmtpCommand.valueOf("DATA2").isContentExpected());
}
}
Source
Frequently Asked Questions
What is the SmtpCommandTest class?
SmtpCommandTest is a class in the netty codebase, defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpCommandTest.java.
Where is SmtpCommandTest defined?
SmtpCommandTest is defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpCommandTest.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free