activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r540545 - /activemq/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailMessageTest.java
Date Tue, 22 May 2007 11:56:16 GMT
Author: jstrachan
Date: Tue May 22 04:56:15 2007
New Revision: 540545

URL: http://svn.apache.org/viewvc?view=rev&rev=540545
Log:
fixed test case

Modified:
    activemq/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailMessageTest.java

Modified: activemq/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailMessageTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailMessageTest.java?view=diff&rev=540545&r1=540544&r2=540545
==============================================================================
--- activemq/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailMessageTest.java
(original)
+++ activemq/camel/trunk/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailMessageTest.java
Tue May 22 04:56:15 2007
@@ -44,12 +44,15 @@
 
         MailExchange exchange = endpoint.createExchange(mimeMessage);
         MailMessage in = exchange.getIn();
-        Object header = in.getHeader("TO");
+        String value = in.getHeader("TO", String.class);
+        assertEquals("value", "james@localhost, bar@localhost", value);
+/*
         String[] values = assertIsInstanceOf(String[].class, header);
         log.debug("Found values: " + ObjectHelper.asString(values));
         assertEquals("Size", 2, values.length);
         assertEquals("values[0]", "james@localhost", values[0]);
         assertEquals("values[1]", "bar@localhost", values[1]);
+*/
 
         assertEquals("body", body, in.getBody());
     }



Mime
View raw message