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: [email protected]
For additional commands, e-mail: [email protected]