public class getRecipients_Test extends MailTest
Get all the recipient addresses of the given type.
api2test: public Address[] getRecipients(int type)
how2test: Call this API with any of { TO } CC | BCC } arguments, verify that this method returns an address list, output it to stdio. If this operation is successfull, then this testcase passes, otherwise it fails.
The mapping between the type and the corresponding RFC822 header is as follows:
Message.TO "To"
Message.CC "cc"
Message.BCC "bcc"
Returns null if the header specified by the type is not found or if its value is empty.
Modifier and Type | Field and Description |
---|---|
static javax.mail.Address[] |
bcc |
static javax.mail.Address[] |
cc |
static javax.mail.Address[] |
to |
auth, debug, errors, from, host, iofile, log, mailbox, msgcount, newName, out, password, pattern, portnum, portvalue, properties, protocol, proxy, rootpath, session, status, subject, testbox, testname, tportnum, tportvalue, transport_host, transport_protocol, user, workdir
Constructor and Description |
---|
getRecipients_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.
|
checkMem, checkStatus, connect2host, createInputStream, createSession, ExceptionTest, getRootFolder, handlException, parseArgs, run
public static javax.mail.Address[] to
public static javax.mail.Address[] cc
public static javax.mail.Address[] bcc
public static void main(java.lang.String[] argv)
public com.sun.javatest.Status run(java.lang.String[] argv, java.io.PrintWriter log, java.io.PrintWriter out)
MailTest