You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/08/01 14:30:55 UTC
[camel] branch master updated (c3a8ffa -> bc71994)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from c3a8ffa Removed unused imports
new 7305809 CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Stream
new 0ad4af6 CAMEL-13801 - Fixed CS for Camel-Stream
new bc71994 Removed unused imports
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../component/stream/StreamGroupLinesStrategyTest.java | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
[camel] 01/03: CAMEL-13801 - camel3 - Use @BindToRegistry wherever
possible, Camel-Stream
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7305809edc8c57a698e3d9929439c38bd04eed5b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Aug 1 16:28:17 2019 +0200
CAMEL-13801 - camel3 - Use @BindToRegistry wherever possible, Camel-Stream
---
.../camel/component/stream/StreamGroupLinesStrategyTest.java | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
index edfbec2..ed56044 100644
--- a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
+++ b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
@@ -18,6 +18,7 @@ package org.apache.camel.component.stream;
import java.util.List;
+import org.apache.camel.BindToRegistry;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.impl.JndiRegistry;
@@ -25,11 +26,8 @@ import org.junit.Test;
public class StreamGroupLinesStrategyTest extends StreamGroupLinesTest {
- protected JndiRegistry createRegistry() throws Exception {
- JndiRegistry jndi = super.createRegistry();
- jndi.bind("myGroupStrategy", new MyGroupStrategy());
- return jndi;
- }
+ @BindToRegistry("myGroupStrategy")
+ private MyGroupStrategy strat = new MyGroupStrategy();
class MyGroupStrategy implements GroupStrategy {
[camel] 02/03: CAMEL-13801 - Fixed CS for Camel-Stream
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0ad4af6eef58adbfac276d5f4dc3420a6ec3fe09
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Aug 1 16:29:15 2019 +0200
CAMEL-13801 - Fixed CS for Camel-Stream
---
.../camel/component/stream/StreamGroupLinesStrategyTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
index ed56044..3a88db7 100644
--- a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
+++ b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
@@ -25,10 +25,10 @@ import org.apache.camel.impl.JndiRegistry;
import org.junit.Test;
public class StreamGroupLinesStrategyTest extends StreamGroupLinesTest {
-
- @BindToRegistry("myGroupStrategy")
- private MyGroupStrategy strat = new MyGroupStrategy();
-
+
+ @BindToRegistry("myGroupStrategy")
+ private MyGroupStrategy strat = new MyGroupStrategy();
+
class MyGroupStrategy implements GroupStrategy {
@Override
@@ -41,7 +41,7 @@ public class StreamGroupLinesStrategyTest extends StreamGroupLinesTest {
return buffer.toString();
}
}
-
+
@Test
public void testGroupLines() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
[camel] 03/03: Removed unused imports
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit bc719943b85e3ef98d28df53cc2218fc5f41e4c8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Aug 1 16:30:33 2019 +0200
Removed unused imports
---
.../org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
index 3a88db7..8803196 100644
--- a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
+++ b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesStrategyTest.java
@@ -21,7 +21,6 @@ import java.util.List;
import org.apache.camel.BindToRegistry;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.impl.JndiRegistry;
import org.junit.Test;
public class StreamGroupLinesStrategyTest extends StreamGroupLinesTest {