From 28437cf87a9c1f8f5876ac9fa0bee22098c1ff6b Mon Sep 17 00:00:00 2001 From: Pascal Schumacher Date: Mon, 1 Aug 2016 19:56:22 +0200 Subject: [PATCH 1/2] fix typo in text method name of FileConsumeDoneFileIssueTest --- .../camel/component/file/FileConsumeDoneFileIssueTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeDoneFileIssueTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeDoneFileIssueTest.java index d57781ac2be54..4f0522144420d 100644 --- a/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeDoneFileIssueTest.java +++ b/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeDoneFileIssueTest.java @@ -60,7 +60,7 @@ public void testFileConsumeDoneFileIssue() throws Exception { assertFalse("Done file should be deleted", new File("target/done/foo.done").exists()); } - public void testFileConsumseDynamicDoneFileName() throws Exception { + public void testFileConsumeDynamicDoneFileName() throws Exception { NotifyBuilder notify = new NotifyBuilder(context).whenDone(3).create(); template.sendBodyAndHeader("file:target/done2", "A", Exchange.FILE_NAME, "a.txt"); From 68a0f8dedb8270515ff23552a8bd8883da917080 Mon Sep 17 00:00:00 2001 From: Pascal Schumacher Date: Mon, 1 Aug 2016 19:57:09 +0200 Subject: [PATCH 2/2] fix two typos in comments of GenericFileConsumer and FilerConsumerDoneFileNameTest --- .../org/apache/camel/component/file/GenericFileConsumer.java | 2 +- .../camel/component/file/FilerConsumerDoneFileNameTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java index 72d4ed1eb32c2..82d94f69ce60d 100644 --- a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java +++ b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java @@ -125,7 +125,7 @@ protected int poll() throws Exception { List> files = new ArrayList>(); String name = endpoint.getConfiguration().getDirectory(); - // time how long time it takes to poll + // time how long it takes to poll StopWatch stop = new StopWatch(); boolean limitHit; try { diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerDoneFileNameTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerDoneFileNameTest.java index 18ca11601b3cb..cff4f260d1582 100644 --- a/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerDoneFileNameTest.java +++ b/camel-core/src/test/java/org/apache/camel/component/file/FilerConsumerDoneFileNameTest.java @@ -38,7 +38,7 @@ public void testDoneFile() throws Exception { template.sendBodyAndHeader("file:target/done", "Hello World", Exchange.FILE_NAME, "hello.txt"); - // wait a bit and it should not pickup the written file as there are no done file + // wait a bit and it should not pickup the written file as there is no done file Thread.sleep(250); assertMockEndpointsSatisfied();