Skip to content

Commit

Permalink
Fixed test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Aug 21, 2024
1 parent 17e1571 commit d37a7a4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

import java.io.File;
import java.net.URI;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.support.DefaultEndpoint;
import org.apache.camel.support.DefaultScheduledPollConsumer;
import org.apache.camel.support.*;
import org.apache.camel.util.FileUtil;

public class FileWatcherConsumer extends DefaultScheduledPollConsumer {
Expand All @@ -37,6 +37,7 @@ public enum Event {

FileWatcherConsumer(DefaultEndpoint endpoint, Processor processor) {
super(endpoint, processor);
setPollStrategy(new DefaultPollingConsumerPollStrategy());
}

@Override
Expand Down
6 changes: 0 additions & 6 deletions camel-filewatcher/src/test/resources/log4j2.properties

This file was deleted.

15 changes: 15 additions & 0 deletions camel-filewatcher/src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<Configuration status="INFO">
<Appenders>
<Console name="stdout" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601} %4.4p %c{1} %m (%t) %n" charset="UTF-8"/>
</Console>
</Appenders>

<Loggers>

<Root level="DEBUG">
<AppenderRef ref="stdout"/>
</Root>
</Loggers>
</Configuration>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<artifactId>log4j-slf4j2-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit d37a7a4

Please sign in to comment.