You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/10/07 12:47:18 UTC

svn commit: r1005404 - /jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java

Author: sebb
Date: Thu Oct  7 10:47:18 2010
New Revision: 1005404

URL: http://svn.apache.org/viewvc?rev=1005404&view=rev
Log:
Ensure other content types are shown

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

Modified: jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java?rev=1005404&r1=1005403&r2=1005404&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java (original)
+++ jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java Thu Oct  7 10:47:18 2010
@@ -328,6 +328,10 @@ public class SmtpSampler extends Abstrac
         } else if(content instanceof BodyPart){
             BodyPart bodyPart = (BodyPart) content;
             writeBodyPart(sb, bodyPart); // throws IOE, ME
+        } else if (content instanceof String){
+            sb.append(content);
+        } else {
+            sb.append("Content has class: "+content.getClass().getCanonicalName());
         }
         return sb.toString();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org