camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From idioma <>
Subject Re: How to get hold of the content of log:message
Date Mon, 14 Nov 2016 11:10:39 GMT
So, I am not sure I am heading towards the right direction, but this is what
I have come up with the following: 

	public void myTest() throws Exception {
                //Custom component has been instantiated outside the
individual test
		String headerValue= MyComponent.VALUE;
		EmailAddress recipients = new EmailAddress("");
		template.sendBodyAndHeader("activemq:topic:inbox", recipients.toString(),
		resultEndpoint.expectedHeaderReceived("expected value from header",

The EmailAddress value is a constant in my Component. I am instantiating
that component to get the value of that constant. Is it correct the way I am
actually testing it on the mock endpoint? 

Thank you for your help,


View this message in context:
Sent from the Camel Development mailing list archive at

View raw message