You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/04/17 12:57:41 UTC

[camel] 04/05: (chores) camel-hdfs: swapped incorrect assertion arguments

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit e60cb55255e5619d914b571a3d5937986e8b8ac8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 13:10:54 2023 +0200

    (chores) camel-hdfs: swapped incorrect assertion arguments
---
 .../camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java b/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java
index 64e5beff7aa..6ca0840873a 100644
--- a/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java
+++ b/components/camel-hdfs/src/test/java/org/apache/camel/component/hdfs/integration/HdfsConsumerIntegrationIT.java
@@ -257,7 +257,7 @@ public class HdfsConsumerIntegrationIT extends CamelTestSupport {
         scheduler.getScheduledExecutorService().awaitTermination(5000, TimeUnit.MILLISECONDS);
 
         FileSystem fs = FileSystem.get(dir.toUri(), conf);
-        assertEquals(fs.listStatus(dir).length, 1);
+        assertEquals(1, fs.listStatus(dir).length);
         assertTrue(fs.delete(new Path(file.toUri() + ".handled")));
     }