public class addConnectionListener_Test extends MailTest implements javax.mail.event.ConnectionListener
Listen and notifies of open/close events to Folder/Store/Transport.
api2test: public addConnectionListener(ConnectionListener)
how2test: Call this API. Then verify that that the notification occur when changes occur to a folder/store/transport. If this happens then this test passed 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 |
---|
addConnectionListener_Test() |
Modifier and Type | Method and Description |
---|---|
void |
closed(javax.mail.event.ConnectionEvent e) |
void |
disconnected(javax.mail.event.ConnectionEvent e) |
void |
dotest(javax.mail.Folder folder) |
static void |
main(java.lang.String[] argv) |
void |
opened(javax.mail.event.ConnectionEvent e) |
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 void opened(javax.mail.event.ConnectionEvent e)
opened
in interface javax.mail.event.ConnectionListener
public void closed(javax.mail.event.ConnectionEvent e)
closed
in interface javax.mail.event.ConnectionListener
public void disconnected(javax.mail.event.ConnectionEvent e)
disconnected
in interface javax.mail.event.ConnectionListener
public com.sun.javatest.Status run(java.lang.String[] argv, java.io.PrintWriter log, java.io.PrintWriter out)
MailTest
public void dotest(javax.mail.Folder folder) throws java.lang.Exception
java.lang.Exception