< prev index next >

jdk/test/javax/xml/ws/8043129/MailTest.java

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8043129
  27  * @summary JAF initialisation in SAAJ clashing with the one in javax.mail
  28  * @author mkos
  29  * @library javax.mail.jar
  30  * @modules java.xml.ws
  31  * @compile -addmods java.xml.ws MailTest.java
  32  * @run main/othervm -addmods java.xml.ws MailTest
  33  */
  34 
  35 import javax.activation.CommandMap;
  36 import javax.activation.MailcapCommandMap;
  37 import javax.mail.BodyPart;
  38 import javax.mail.Message;
  39 import javax.mail.MessagingException;
  40 import javax.mail.Multipart;
  41 import javax.mail.Session;
  42 import javax.mail.internet.InternetAddress;
  43 import javax.mail.internet.MimeBodyPart;
  44 import javax.mail.internet.MimeMessage;
  45 import javax.mail.internet.MimeMultipart;
  46 import javax.xml.soap.AttachmentPart;
  47 import javax.xml.soap.MessageFactory;
  48 import javax.xml.soap.SOAPException;
  49 import javax.xml.soap.SOAPMessage;
  50 import java.io.ByteArrayOutputStream;
  51 import java.io.IOException;
  52 import java.util.Properties;




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8043129
  27  * @summary JAF initialisation in SAAJ clashing with the one in javax.mail
  28  * @author mkos
  29  * @library javax.mail.jar
  30  * @modules java.xml.ws
  31  * @run main MailTest

  32  */
  33 
  34 import javax.activation.CommandMap;
  35 import javax.activation.MailcapCommandMap;
  36 import javax.mail.BodyPart;
  37 import javax.mail.Message;
  38 import javax.mail.MessagingException;
  39 import javax.mail.Multipart;
  40 import javax.mail.Session;
  41 import javax.mail.internet.InternetAddress;
  42 import javax.mail.internet.MimeBodyPart;
  43 import javax.mail.internet.MimeMessage;
  44 import javax.mail.internet.MimeMultipart;
  45 import javax.xml.soap.AttachmentPart;
  46 import javax.xml.soap.MessageFactory;
  47 import javax.xml.soap.SOAPException;
  48 import javax.xml.soap.SOAPMessage;
  49 import java.io.ByteArrayOutputStream;
  50 import java.io.IOException;
  51 import java.util.Properties;


< prev index next >