public class listSubscribed_Test extends MailTest
Convenience method that returns the list of subscribed folders under this Folder
api2test: public Folder[] listSubscribed() throws MessagingException
how2test: Call this API on a folder object. Check for the list folder objects
returned. This method just calls the list(pattern) method with "%" as the
match pattern. This method can be invoked on a closed/open Folder.
Returns a list of subscribed Folders belonging to this Folder's namespace that match the specified pattern.
api2test: public Folder[] listSubscribed(String) throws MessagingException
how2test: Same as above, except that now we pass various string arguments to this API.
NOTE: Make sure that you have the following directory structure on the server before you run this testcase.
default-dir/
test[?]/
a) The pattern can contain wildcards (in patttern) for list().
b) Invoking this method on the same pattern multiple times
will return that many distinct Folder objects.
c) This method can be invoked on a closed/open Folder.
d) If the folder does not support subscription, this method
should resolve to list() [(the default implementation provided here, does just this).
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 |
---|
listSubscribed_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