From c43a6e653a9a6c4a4fef3f8fef4c16f3762ba9b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Mon, 20 Jul 2026 14:46:30 +0200 Subject: [PATCH] Revert "CAMEL-24026: Fix flaky XsltFromFileExceptionTest (#24625)" This reverts commit 1f8808cc848e83c2a6fd0a5e320bb3534dce0ca0. --- .../component/xslt/XsltFromFileExceptionTest.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java b/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java index dab9fc2d9b5f8..74f68c9e1a3ff 100644 --- a/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/component/xslt/XsltFromFileExceptionTest.java @@ -21,8 +21,6 @@ import org.apache.camel.builder.RouteBuilder; import org.junit.jupiter.api.Test; -import static org.junit.jupiter.api.Assertions.assertTrue; - /** * */ @@ -35,11 +33,10 @@ public void testXsltFromFileExceptionOk() throws Exception { template.sendBodyAndHeader(fileUri(), "world!", Exchange.FILE_NAME, "hello.xml"); - // wait for the file consumer to pick up and process the file before asserting - assertTrue(oneExchangeDone.matchesWaitTime(), "Exchange should have completed"); - assertMockEndpointsSatisfied(); + oneExchangeDone.matchesWaitTime(); + assertFileNotExists(testFile("hello.xml")); assertFileExists(testFile("ok/hello.xml")); } @@ -52,11 +49,10 @@ public void testXsltFromFileExceptionFail() throws Exception { // the last tag is not ended properly template.sendBodyAndHeader(fileUri(), "world!