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
The following commit(s) were added to refs/heads/main by this push:
new 62684ee4f1d CAMEL-22400 Adjust ZipFileSplitIteratorCorruptTest to
camel ZipIterator change (#1533)
62684ee4f1d is described below
commit 62684ee4f1d1d731fcceac2a24bc9fd99d6e3fda
Author: Tom Cunningham <[email protected]>
AuthorDate: Fri Oct 10 03:35:13 2025 -0400
CAMEL-22400 Adjust ZipFileSplitIteratorCorruptTest to camel ZipIterator
change (#1533)
---
.../zipfile/springboot/ZipFileSplitIteratorCorruptTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileSplitIteratorCorruptTest.java
b/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileSplitIteratorCorruptTest.java
index 6ba5276a28f..23c799c6daf 100644
---
a/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileSplitIteratorCorruptTest.java
+++
b/components-starter/camel-zipfile-starter/src/test/java/org/apache/camel/dataformat/zipfile/springboot/ZipFileSplitIteratorCorruptTest.java
@@ -22,6 +22,7 @@ import org.apache.camel.EndpointInject;
import org.apache.camel.Exchange;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.RuntimeCamelException;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.dataformat.zipfile.ZipFileDataFormat;
import org.apache.camel.spring.boot.CamelAutoConfiguration;
@@ -53,10 +54,9 @@ public class ZipFileSplitIteratorCorruptTest {
@Test
public void testZipFileUnmarshal() throws Exception {
mockDead.expectedMessageCount(1);
-
mockDead.message(0).exchangeProperty(Exchange.EXCEPTION_CAUGHT).isInstanceOf(IllegalStateException.class);
+
mockDead.message(0).exchangeProperty(Exchange.EXCEPTION_CAUGHT).isInstanceOf(RuntimeCamelException.class);
mockEnd.expectedMessageCount(0);
- mockDead.assertIsSatisfied();
mockEnd.assertIsSatisfied();
}