public class copyMessages_Test extends MailTest
Copy the specified Messages from this Folder into another Folder.
api2test: public boolean copyMessages(Message msgs[], Folder folder)
how2test: Call this API, copy messages to a test folder, check that expected
number of messages got copied. If so then test is passing.
a) This operation appends these Messages to the destination Folder.
b) The destination Folder does not have to be opened.
c) The specified Message objects must belong to this folder. Folder
implementations might be able to optimize this method by doing server-side
copies.
d) An implementation must not abort the operation if a Message in the array
turns out to be an expunged Message.
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 |
---|
copyMessages_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