You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/02/26 19:40:32 UTC
[camel-spring-boot] 03/03: CAMEL-19090: Remove deprecated apis in core
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
commit ad5c8e425191b1c2d7943a9f511a0c62494f749f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Feb 26 20:39:20 2023 +0100
CAMEL-19090: Remove deprecated apis in core
---
.../camel/component/file/remote/springboot/AbstractBaseFtp.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/AbstractBaseFtp.java b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/AbstractBaseFtp.java
index 1d0c07418e8..294c349aab2 100644
--- a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/AbstractBaseFtp.java
+++ b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/AbstractBaseFtp.java
@@ -20,6 +20,7 @@ import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.model.language.SimpleExpression;
import org.junit.jupiter.api.Assertions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
@@ -31,8 +32,6 @@ import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;
-import static org.apache.camel.language.simple.SimpleLanguage.simple;
-
public abstract class AbstractBaseFtp {
protected static final String AUTH_VALUE_SSL = "SSLv3";
protected static final String AUTH_VALUE_TLS = "TLSv1.3";
@@ -50,7 +49,7 @@ public abstract class AbstractBaseFtp {
}
protected void sendFile(String url, Object body, String fileName) {
- template.sendBodyAndHeader(url, body, Exchange.FILE_NAME, simple(fileName));
+ template.sendBodyAndHeader(url, body, Exchange.FILE_NAME, new SimpleExpression(fileName));
}
protected static void assertFileExists(String filename) {