Class getHeader_Test
- java.lang.Object
-
- javasoft.sqe.tests.jakarta.mail.util.MailTest
-
- javasoft.sqe.tests.jakarta.mail.Message.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 Summary
Fields Modifier and Type Field Description static java.lang.Stringbccstatic java.lang.Stringccstatic java.lang.Stringcontent_encodestatic java.lang.Stringcontent_md5static java.lang.Stringcontentlengthstatic java.lang.Stringcontentypestatic java.lang.Stringdatestatic java.lang.Stringfromstatic java.lang.Stringmime_versionstatic java.lang.Stringmsgidstatic java.lang.Stringreferencestatic java.lang.Stringreplytostatic java.lang.Stringreturnpathstatic java.lang.Stringsubjectstatic java.lang.Stringtostatic java.lang.Stringxmailer-
Fields inherited from class javasoft.sqe.tests.jakarta.mail.util.MailTest
auth, debug, errors, host, iofile, log, mailbox, msgcount, newName, out, password, pattern, portnum, portvalue, properties, protocol, proxy, rootpath, session, status, testbox, testname, tportnum, tportvalue, transport_host, transport_protocol, user, workdir
-
-
Constructor Summary
Constructors Constructor Description getHeader_Test()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] argv)com.sun.javatest.Statusrun(java.lang.String[] argv, java.io.PrintWriter log, java.io.PrintWriter out)Default run() method ; sets i/o streams.-
Methods inherited from class javasoft.sqe.tests.jakarta.mail.util.MailTest
checkMem, checkStatus, connect2host, createInputStream, createSession, ExceptionTest, getRootFolder, handlException, parseArgs, run
-
-
-
-
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
-
-
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:MailTestDefault run() method ; sets i/o streams.
-
-