Class getHeader_Test

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

    public class getHeader_Test
    extends MailTest
    This class tests the getHeader() API. It does this by passing various valid input values and then checking the type of the returned object.

    Get all the headers for this header_name.

    api2test: public String[] getHeader(String name)

    how2test: Call this API with various input header names. Verity that it returns

    list/array of headers. Write out this list to stdio. If this operation

    is successfull then this testcase passes, otherwise it fails.

    • Field Detail

      • msgid

        public static java.lang.String msgid
      • date

        public static java.lang.String date
      • to

        public static java.lang.String to
      • cc

        public static java.lang.String cc
      • bcc

        public static java.lang.String bcc
      • from

        public static java.lang.String from
      • replyto

        public static java.lang.String replyto
      • returnpath

        public static java.lang.String returnpath
      • subject

        public static java.lang.String subject
      • xmailer

        public static java.lang.String xmailer
      • reference

        public static java.lang.String reference
      • mime_version

        public static java.lang.String mime_version
      • contentype

        public static java.lang.String contentype
      • content_encode

        public static java.lang.String content_encode
      • contentlength

        public static java.lang.String contentlength
      • content_md5

        public static java.lang.String content_md5
    • Constructor Detail

      • getHeader_Test

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