Class addRecipient_Test

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

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

    Add these recipient addresses to the existing ones of the given type.

    api2test: public void addRecipient(int, Address)

    how2test: Call this API with '1|2|3' input values, then call getRecipients() api to check that api under test did its job, output to stdio.

    • Field Detail

      • TO

        public static java.lang.String TO
      • CC

        public static java.lang.String CC
      • To

        public static jakarta.mail.internet.InternetAddress To
      • cc

        public static jakarta.mail.internet.InternetAddress cc
      • bcc

        public static jakarta.mail.internet.InternetAddress bcc
      • From

        public jakarta.mail.Address[] From
    • Constructor Detail

      • addRecipient_Test

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