Skip to content

Commit dfd2d7a

Browse files
ante003pivovarit
authored andcommitted
- changed test package name from org.baeldung to com.baeldung (eugenp#897)
- streams are added where neccessary - format fixes
1 parent f7dacb8 commit dfd2d7a

17 files changed

Lines changed: 23 additions & 24 deletions

‎spring-apache-camel/pom.xml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<properties>
1212
<env.camel.version>2.16.1</env.camel.version>
1313
<env.spring.version>4.3.4.RELEASE</env.spring.version>
14-
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
14+
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
1515
<java.version>1.8</java.version>
1616
<junit.version>4.12</junit.version>
1717
</properties>
@@ -48,7 +48,11 @@
4848
<artifactId>spring-context</artifactId>
4949
<version>${env.spring.version}</version>
5050
</dependency>
51-
51+
<dependency>
52+
<groupId>org.slf4j</groupId>
53+
<artifactId>slf4j-log4j12</artifactId>
54+
<version>1.7.21</version>
55+
</dependency>
5256
</dependencies>
5357

5458
<build>
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
package com.baeldung.camel.file;
22

3-
import org.apache.camel.Exchange;
43
import org.apache.camel.LoggingLevel;
5-
import org.apache.camel.Processor;
64
import org.apache.camel.builder.RouteBuilder;
75

86
public class DeadLetterChannelFileRouter extends RouteBuilder {
97
private static final String SOURCE_FOLDER = "src/test/source-folder";
108

119
@Override
1210
public void configure() throws Exception {
13-
errorHandler(deadLetterChannel("log:dead?level=ERROR").maximumRedeliveries(3).redeliveryDelay(1000).retryAttemptedLogLevel(LoggingLevel.ERROR));
11+
errorHandler(deadLetterChannel("log:dead?level=ERROR").maximumRedeliveries(3)
12+
.redeliveryDelay(1000).retryAttemptedLogLevel(LoggingLevel.ERROR));
1413

15-
from("file://" + SOURCE_FOLDER + "?delete=true").process(new Processor() {
16-
@Override
17-
public void process(Exchange exchange) throws Exception {
18-
throw new IllegalArgumentException("Exception thrown!");
19-
}
14+
from("file://" + SOURCE_FOLDER + "?delete=true").process((exchange) -> {
15+
throw new IllegalArgumentException("Exception thrown!");
2016
});
2117
}
2218
}

‎spring-apache-camel/src/main/resources/camel-context-ContentBasedFileRouterTest.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
55
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
66

7-
<bean id="contentBasedFileRouter" class="org.baeldung.camel.file.ContentBasedFileRouter" />
7+
<bean id="contentBasedFileRouter" class="com.baeldung.camel.file.ContentBasedFileRouter" />
88

99
<camelContext xmlns="http://camel.apache.org/schema/spring">
1010
<routeBuilder ref="contentBasedFileRouter" />

‎spring-apache-camel/src/main/resources/camel-context-DeadLetterChannelFileRouter.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
55
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
66

7-
<bean id="deadLetterChannelFileRouter" class="org.baeldung.camel.file.DeadLetterChannelFileRouter" />
7+
<bean id="deadLetterChannelFileRouter" class="com.baeldung.camel.file.DeadLetterChannelFileRouter" />
88

99
<camelContext xmlns="http://camel.apache.org/schema/spring">
1010
<routeBuilder ref="deadLetterChannelFileRouter" />

‎spring-apache-camel/src/main/resources/camel-context-MessageTranslatorFileRouterTest.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
55
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
66

7-
<bean id="messageTranslatorFileRouter" class="org.baeldung.camel.file.MessageTranslatorFileRouter" />
7+
<bean id="messageTranslatorFileRouter" class="com.baeldung.camel.file.MessageTranslatorFileRouter" />
88

99
<camelContext xmlns="http://camel.apache.org/schema/spring">
1010
<routeBuilder ref="messageTranslatorFileRouter" />

‎spring-apache-camel/src/main/resources/camel-context-MulticastFileRouterTest.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
55
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
66

7-
<bean id="multicastFileRouter" class="org.baeldung.camel.file.MulticastFileRouter" />
7+
<bean id="multicastFileRouter" class="com.baeldung.camel.file.MulticastFileRouter" />
88

99
<camelContext xmlns="http://camel.apache.org/schema/spring">
1010
<routeBuilder ref="multicastFileRouter" />

‎spring-apache-camel/src/main/resources/camel-context-SplitterFileRouter.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
55
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
66

7-
<bean id="splitterFileRouter" class="org.baeldung.camel.file.SplitterFileRouter" />
7+
<bean id="splitterFileRouter" class="com.baeldung.camel.file.SplitterFileRouter" />
88

99
<camelContext xmlns="http://camel.apache.org/schema/spring">
1010
<routeBuilder ref="splitterFileRouter" />

‎spring-apache-camel/src/test/destination-folder/2016-12-14 23-33-25File1.txt‎

Whitespace-only changes.

‎spring-apache-camel/src/test/destination-folder/2016-12-14 23-33-25File2.txt‎

Whitespace-only changes.

spring-apache-camel/src/test/java/org/apache/camel/file/processor/ContentBasedFileRouterIntegrationTest.java renamed to spring-apache-camel/src/test/java/com/apache/camel/file/processor/ContentBasedFileRouterIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.apache.camel.file.processor;
1+
package com.apache.camel.file.processor;
22

33
import java.io.File;
44

0 commit comments

Comments
 (0)