Class addHeader_Test

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

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

    Add this value to the existing values for this header_name.

    api2test: public void addHeader(String, String)

    how2test: Call this API with various string arguments, then call 'getHeader()' api to check that API under test did its jobs as expected. If it did then the testcase is passing, otherwsie it fails.

    • Field Detail

      • name1

        public static java.lang.String name1
      • value1

        public static java.lang.String value1
      • name2

        public static java.lang.String name2
      • value2

        public static java.lang.String value2
      • thistest

        public static int thistest
      • header

        public java.lang.String[] header
    • Constructor Detail

      • addHeader_Test

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