You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Gert-Jan van de Streek (JIRA)" <ji...@apache.org> on 2009/07/23 15:34:33 UTC
[jira] Commented: (CAMEL-1848) MockEndPoint yields nullpointer due
to mixed up typeconversion
[ https://issues.apache.org/activemq/browse/CAMEL-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52915#action_52915 ]
Gert-Jan van de Streek commented on CAMEL-1848:
-----------------------------------------------
The header is set by the following code:
.setHeader(PortalConstants.PORTAL_ID, new XPathExpression("/portal/id"))
> MockEndPoint yields nullpointer due to mixed up typeconversion
> --------------------------------------------------------------
>
> Key: CAMEL-1848
> URL: https://issues.apache.org/activemq/browse/CAMEL-1848
> Project: Apache Camel
> Issue Type: Bug
> Affects Versions: 2.0-M2
> Reporter: Gert-Jan van de Streek
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> MockEndpoint yields a failed unit test with very confusing message:
> resultEndpointHub.expectedHeaderReceived("portalId", 30);
> Yields: ... expected <null> but got ...
> Of course the expected value of null must never happen if a value is put in there
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.