Class open_Test

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

    public class open_Test
    extends MailTest
    This class tests the open(int) API. It does this by passing various valid input values then using isOpen() api to test if open() method did its job.

    Open this Folder

    api2test: public void open(int mode)

    how2test: Call this API on a folder object. Then call 'isOpen()' on this

    same folder object, if this second API returns a TRUE value then then testcase passes, otherwise it fails.

    a) This method is valid only on Folders that can contain Messages.

    b) The effect of opening multiple connections to the same folder on a specifc Store is implementation dependent.

    • Constructor Detail

      • open_Test

        public open_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