Skip to content

Commit

Permalink
fixed test case
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/activemq/camel/trunk@540545 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jstrachan committed May 22, 2007
1 parent 7c4c14f commit 66e297e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -44,12 +44,15 @@ public void testMailMessageHandlesMultipleHeaders() throws Exception {

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());
}
Expand Down

0 comments on commit 66e297e

Please sign in to comment.