Class getSession_Test

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

    public class getSession_Test
    extends MailTest
    This class tests the getSession() API. It does this by invoking the test api and then checking that the returned object is the same object used to create the message.

    Get the session of this message.

    api2test: public String getSession()

    how2test: Call this API on given message object, verify that it returns the Session object used to create this message. If this operation is successfull then this testcase passes, otherwise it fails.

    Returns the Session object used when the message was created. Returns null if no Session is available.

    • Constructor Detail

      • getSession_Test

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