Hi

Regexp is supported as well:

       
mockEndpoint.expectedMessagesMatches(header("CamelFileName").regex("test-[0-9]{4}-[0-9]{2}-[0-9]{2}\\.xml"));

Babak



--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-test-a-header-with-a-regular-expression-tp5717768p5717796.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to