public class setFlag_Test extends MailTest
Set the specified flags on this message to the specified value.
api2test: public void setFlag(Flags.Flag, boolean set)
how2test: Call this API with various arguments, then call getFlags() api, if the getFlag value is the same as setFlag then this test is successfull, otherwise it fails.
auth, debug, errors, from, host, iofile, log, mailbox, msgcount, newName, out, password, pattern, portnum, portvalue, properties, protocol, proxy, rootpath, session, status, subject, testbox, testname, to, tportnum, tportvalue, transport_host, transport_protocol, user, workdir| Constructor and Description |
|---|
setFlag_Test() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] argv) |
com.sun.javatest.Status |
run(java.lang.String[] argv,
java.io.PrintWriter log,
java.io.PrintWriter out)
Default run() method ; sets i/o streams.
|
boolean |
testFlag(javax.mail.internet.MimeMessage msg) |
checkMem, checkStatus, connect2host, createInputStream, createSession, ExceptionTest, getRootFolder, handlException, parseArgs, runpublic static void main(java.lang.String[] argv)
public boolean testFlag(javax.mail.internet.MimeMessage msg)
public com.sun.javatest.Status run(java.lang.String[] argv,
java.io.PrintWriter log,
java.io.PrintWriter out)
MailTest