jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1350998 - /jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
Date Sat, 16 Jun 2012 20:53:13 GMT
Author: pmouawad
Date: Sat Jun 16 20:53:13 2012
New Revision: 1350998

URL: http://svn.apache.org/viewvc?rev=1350998&view=rev
Log:
Use Root interface

Modified:
    jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java

Modified: jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java?rev=1350998&r1=1350997&r2=1350998&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
(original)
+++ jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
Sat Jun 16 20:53:13 2012
@@ -35,6 +35,7 @@ import javax.mail.Header;
 import javax.mail.Message;
 import javax.mail.MessagingException;
 import javax.mail.Multipart;
+import javax.mail.Part;
 import javax.mail.internet.AddressException;
 import javax.mail.internet.ContentType;
 import javax.mail.internet.InternetAddress;
@@ -354,7 +355,7 @@ public class SmtpSampler extends Abstrac
         writeHeaders(allHeaders, sb);
         String disposition = bodyPart.getDisposition(); // throws ME
         sb.append("\n");
-        if (BodyPart.ATTACHMENT.equals(disposition)) {
+        if (Part.ATTACHMENT.equals(disposition)) {
             sb.append("<attachment content not shown>");
         } else {
             sb.append(bodyPart.getContent()); // throws IOE, ME



Mime
View raw message