Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import org.apache.camel.builder.RouteBuilder;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertTrue;

/**
*
*/
Expand All @@ -35,11 +33,10 @@ public void testXsltFromFileExceptionOk() throws Exception {

template.sendBodyAndHeader(fileUri(), "<hello>world!</hello>", 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"));
}
Expand All @@ -52,11 +49,10 @@ public void testXsltFromFileExceptionFail() throws Exception {
// the last tag is not ended properly
template.sendBodyAndHeader(fileUri(), "<hello>world!</hello", Exchange.FILE_NAME, "hello2.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("hello2.xml"));
assertFileExists(testFile("error/hello2.xml"));
}
Expand Down