Class getMessageContent_Test

  • All Implemented Interfaces:
    com.sun.javatest.Test

    public class getMessageContent_Test
    extends MailTest
    This class tests that the content of all Messages in a Folder can be read. For each Message in the Folder, headers are printed out and the content is accessed using the Part.getInputStream method. Parts of the message are processed recursively, including embedded message/rfc822 parts. Any exception causes the test to fail. XXX - really should verify that the content matches what is expected.
    • Constructor Detail

      • getMessageContent_Test

        public getMessageContent_Test()
    • Method Detail

      • main

        public static void main​(java.lang.String[] argv)
      • 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.
        Specified by:
        run in interface com.sun.javatest.Test
        Overrides:
        run in class MailTest
        Parameters:
        argv - command line arguments
        log - the log stream
        out - the output stream
        Returns:
        null