This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 41c68f6 CAMEL-15114: Simple language - Date function should make it easy to output the exchange created timestamp 41c68f6 is described below commit 41c68f64281d223946bf50b774542b23a70bf7e1 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed May 27 08:00:40 2020 +0200 CAMEL-15114: Simple language - Date function should make it easy to output the exchange created timestamp --- .../apache/camel/component/file/remote/FtpProducerExpressionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java index c25198b..566d1e3 100644 --- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java +++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerExpressionTest.java @@ -91,7 +91,7 @@ public class FtpProducerExpressionTest extends FtpServerTestSupport { @Test public void testProducerSimpleWithHeaderByExpression() throws Exception { - template.sendBodyAndHeader(getFtpUrl() + "&fileName=myfile-${in.header.foo}.txt", "Hello World", "foo", "abc"); + template.sendBodyAndHeader(getFtpUrl() + "&fileName=myfile-${header.foo}.txt", "Hello World", "foo", "abc"); assertFileExists(FTP_ROOT_DIR + "/filelanguage/myfile-abc.txt"); } @@ -102,7 +102,7 @@ public class FtpProducerExpressionTest extends FtpServerTestSupport { cal.set(1974, Calendar.APRIL, 20); Date date = cal.getTime(); - template.sendBodyAndHeader(getFtpUrl() + "&fileName=mybirthday-${date:in.header.birthday:yyyyMMdd}.txt", "Hello World", "birthday", date); + template.sendBodyAndHeader(getFtpUrl() + "&fileName=mybirthday-${date:header.birthday:yyyyMMdd}.txt", "Hello World", "birthday", date); assertFileExists(FTP_ROOT_DIR + "/filelanguage/mybirthday-19740420.txt"); }