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.git
The following commit(s) were added to refs/heads/main by this push:
new 9a8cc90217f Fixed tests
9a8cc90217f is described below
commit 9a8cc90217f4c90267cc3fb7e80083c42a2c1732
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Mar 21 09:35:44 2024 +0100
Fixed tests
---
...arkerFileExclusiveReadLockStrategyRecursiveCleanupTest.java | 10 ----------
.../apache/camel/component/log/LogComponentOptionsTest.java | 2 +-
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git
a/core/camel-core/src/test/java/org/apache/camel/component/file/MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest.java
b/core/camel-core/src/test/java/org/apache/camel/component/file/MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest.java
index 9be63945b0d..fcf0a922afd 100644
---
a/core/camel-core/src/test/java/org/apache/camel/component/file/MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/component/file/MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest.java
@@ -46,12 +46,10 @@ public class
MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest extends Con
createFiles("d1/d2/d3", "d3.dat");
createFiles("d1/d2/d3/d4", "d4.dat");
createFiles("d1/d2/d3/d4/d5", "d5.dat");
-
}
@Test
public void testNonRecursive() throws Exception {
-
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
@@ -74,7 +72,6 @@ public class
MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest extends Con
@Test
public void testRecursiveSingleDepth() throws Exception {
-
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
@@ -97,12 +94,10 @@ public class
MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest extends Con
checkFilesExists("d1/d2/d3", "d3.dat");
checkFilesExists("d1/d2/d3/d4", "d4.dat");
checkFilesExists("d1/d2/d3/d4/d5", "d5.dat");
-
}
@Test
public void testRecursiveRange() throws Exception {
-
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
@@ -124,12 +119,10 @@ public class
MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest extends Con
checkFilesNotExists("d1/d2/d3", "d3.dat");
checkFilesNotExists("d1/d2/d3/d4", "d4.dat");
checkFilesExists("d1/d2/d3/d4/d5", "d5.dat");
-
}
@Test
public void testRecursiveRangeAntInclude() throws Exception {
-
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
@@ -151,12 +144,10 @@ public class
MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest extends Con
checkFilesNotExists("d1/d2/d3", "d3.dat");
checkFilesNotExists("d1/d2/d3/d4", "d4.dat");
checkFilesExists("d1/d2/d3/d4/d5", "d5.dat");
-
}
@Test
public void testRecursive() throws Exception {
-
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
@@ -178,7 +169,6 @@ public class
MarkerFileExclusiveReadLockStrategyRecursiveCleanupTest extends Con
checkFilesNotExists("d1/d2/d3", "d3.dat");
checkFilesNotExists("d1/d2/d3/d4", "d4.dat");
checkFilesNotExists("d1/d2/d3/d4/d5", "d5.dat");
-
}
private void createFiles(String dir, String fileName) throws IOException {
diff --git
a/core/camel-core/src/test/java/org/apache/camel/component/log/LogComponentOptionsTest.java
b/core/camel-core/src/test/java/org/apache/camel/component/log/LogComponentOptionsTest.java
index d301b1a3802..805ee49dd04 100644
---
a/core/camel-core/src/test/java/org/apache/camel/component/log/LogComponentOptionsTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/component/log/LogComponentOptionsTest.java
@@ -73,7 +73,7 @@ public class LogComponentOptionsTest extends
ContextTestSupport {
long after =
PluginHelper.getBeanIntrospection(context).getInvokedCounter();
- assertTrue(after > before, "Should use Java reflection");
+ assertEquals(before, after, "Should not use Java reflection");
}
@Test