public class addConnectionListener_Test extends MailTest implements jakarta.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(jakarta.mail.event.ConnectionEvent e) |
void |
disconnected(jakarta.mail.event.ConnectionEvent e) |
void |
dotest(jakarta.mail.Folder folder) |
static void |
main(java.lang.String[] argv) |
void |
opened(jakarta.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, runpublic static void main(java.lang.String[] argv)
public void opened(jakarta.mail.event.ConnectionEvent e)
opened in interface jakarta.mail.event.ConnectionListenerpublic void closed(jakarta.mail.event.ConnectionEvent e)
closed in interface jakarta.mail.event.ConnectionListenerpublic void disconnected(jakarta.mail.event.ConnectionEvent e)
disconnected in interface jakarta.mail.event.ConnectionListenerpublic com.sun.javatest.Status run(java.lang.String[] argv,
java.io.PrintWriter log,
java.io.PrintWriter out)
MailTestpublic void dotest(jakarta.mail.Folder folder)
throws java.lang.Exception
java.lang.Exception