@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()); }
boolean isContentExpected() { return this.equals(DATA); }
SmtpCommand { boolean isContentExpected() { return this.equals(DATA); } }
SmtpCommand { boolean isContentExpected() { return this.equals(DATA); } private  SmtpCommand(AsciiString name); }
SmtpCommand { boolean isContentExpected() { return this.equals(DATA); } private  SmtpCommand(AsciiString name); static SmtpCommand valueOf(CharSequence commandName); AsciiString name(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
SmtpCommand { boolean isContentExpected() { return this.equals(DATA); } private  SmtpCommand(AsciiString name); static SmtpCommand valueOf(CharSequence commandName); AsciiString name(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final SmtpCommand EHLO; static final SmtpCommand HELO; static final SmtpCommand MAIL; static final SmtpCommand RCPT; static final SmtpCommand DATA; static final SmtpCommand NOOP; static final SmtpCommand RSET; static final SmtpCommand EXPN; static final SmtpCommand VRFY; static final SmtpCommand HELP; static final SmtpCommand QUIT; }