public class addFrom_Test extends MailTest
Add these addresses to the existing "From" attribute
api2test: public void addFrom(Address addresses[])
how2test: Call this API with various address arguments. If this operation is successfull then the testcase passes, otherwise it fails.
We also call getFrom() after we have called the above API to see if 'addFrom()' did its jobs successfully!
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FROM1 |
static java.lang.String |
FROM2 |
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 |
---|
addFrom_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 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