1 19 20 package org.apache.james.core; 21 22 import javax.mail.util.SharedByteArrayInputStream; 23 24 import javax.mail.Session ; 25 import javax.mail.internet.MimeMessage ; 26 27 import java.util.Properties ; 28 29 public class MimeMessageFromSharedStreamTest extends MimeMessageFromStreamTest { 30 31 protected MimeMessage getMessageFromSources(String sources) throws Exception { 32 return new MimeMessage (Session.getDefaultInstance(new Properties ()),new SharedByteArrayInputStream(sources.getBytes())); 33 } 34 35 } 36 | Popular Tags |