You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2026/09/07 13:33:05 UTC
(camel-spring-boot) branch main updated: CAMEL-24293: camel-zipfile-starter - Align ZipFileDataFormatTest
This is an automated email from the ASF dual-hosted git repository.
Croway pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new c3dae86ea11 CAMEL-24293: camel-zipfile-starter - Align ZipFileDataFormatTest
c3dae86ea11 is described below
commit c3dae86ea110a7bff26046107736eaad58b948f6
Author: Branislav Smolicek <bs...@redhat.com>
AuthorDate: Mon Sep 7 13:27:14 2026 +0200
CAMEL-24293: camel-zipfile-starter - Align ZipFileDataFormatTest
Use the full ZIP entry name supplied by CAMEL-24293 when extracting the test fixture. The CamelFileName header is intentionally sanitized to the basename.
Co-authored-by: Codex <no...@openai.com>
---
.../camel/dataformat/zipfile/springboot/ZipFileDataFormatTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatTest.java b/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatTest.java
index b0675f4eb3e..e63e282007b 100644
--- a/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatTest.java
+++ b/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileDataFormatTest.java
@@ -354,8 +354,7 @@ public class ZipFileDataFormatTest {
@Override
public void process(Exchange exchange) throws Exception {
ZipFile zfile = new ZipFile(new File("src/test/resources/hello.odt"));
- ZipEntry entry = new ZipEntry(
- (String) exchange.getIn().getHeader(Exchange.FILE_NAME));
+ ZipEntry entry = new ZipEntry((String) exchange.getIn().getHeader("zipFileName"));
String outputDirectory = "hello_out";
File file = new File(outputDirectory, entry.getName());