Class addMsgCntList_Test
- java.lang.Object
-
- javasoft.sqe.tests.jakarta.mail.util.MailTest
-
- javasoft.sqe.tests.jakarta.mail.event.FolderEvent.addMsgCntList_Test
-
- All Implemented Interfaces:
com.sun.javatest.Test
,jakarta.mail.event.MessageCountListener
,java.util.EventListener
public class addMsgCntList_Test extends MailTest implements jakarta.mail.event.MessageCountListener
This class tests the addMessageCountListener() API. It does this by passing various valid input values and then checking the type/value of the returned object.Listen and notifies changes in the number of messages in a folder.
api2test: public addMessageCountListener(MessageCountListener)
how2test: Call this API. Then verify that that the notification occur when changes in the number of messages in a folder. If this happens then this test passed otherwise it fails.
-
-
Field Summary
-
Fields inherited from class javasoft.sqe.tests.jakarta.mail.util.MailTest
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 Summary
Constructors Constructor Description addMsgCntList_Test()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] argv)
void
messagesAdded(jakarta.mail.event.MessageCountEvent e)
void
messagesRemoved(jakarta.mail.event.MessageCountEvent 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.-
Methods inherited from class javasoft.sqe.tests.jakarta.mail.util.MailTest
checkMem, checkStatus, connect2host, createInputStream, createSession, ExceptionTest, getRootFolder, handlException, parseArgs, run
-
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] argv)
-
messagesAdded
public void messagesAdded(jakarta.mail.event.MessageCountEvent e)
- Specified by:
messagesAdded
in interfacejakarta.mail.event.MessageCountListener
-
messagesRemoved
public void messagesRemoved(jakarta.mail.event.MessageCountEvent e)
- Specified by:
messagesRemoved
in interfacejakarta.mail.event.MessageCountListener
-
run
public com.sun.javatest.Status run(java.lang.String[] argv, java.io.PrintWriter log, java.io.PrintWriter out)
Description copied from class:MailTest
Default run() method ; sets i/o streams.
-
-