You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2017/11/12 22:11:53 UTC

[camel] branch master updated (a481400 -> ee49be1)

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

pascalschumacher pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from a481400  camel-servletlistener: speed-up tests by not forking the JVM for every test executed
     new 2cbf9b5  camel-stream: fix test on windows by using the system line separator
     new ee49be1  camel-stream: speed-up tests by not forking the JVM for every test executed

The 2 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:
 components/camel-stream/pom.xml                             | 13 -------------
 .../apache/camel/component/stream/SplitStreamFileTest.java  |  2 +-
 .../component/stream/StreamGroupLinesLastStrategyTest.java  |  4 ++--
 .../component/stream/StreamGroupLinesStrategyTest.java      |  4 ++--
 .../org/apache/camel/component/stream/StreamHeaderTest.java |  2 +-
 5 files changed, 6 insertions(+), 19 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].

[camel] 01/02: camel-stream: fix test on windows by using the system line separator

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2cbf9b52de4c65476192b8fd587098f0128ab3eb
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Nov 12 23:08:44 2017 +0100

    camel-stream: fix test on windows by using the system line separator
---
 .../java/org/apache/camel/component/stream/SplitStreamFileTest.java   | 2 +-
 .../camel/component/stream/StreamGroupLinesLastStrategyTest.java      | 4 ++--
 .../apache/camel/component/stream/StreamGroupLinesStrategyTest.java   | 4 ++--
 .../test/java/org/apache/camel/component/stream/StreamHeaderTest.java | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/components/camel-stream/src/test/java/org/apache/camel/component/stream/SplitStreamFileTest.java b/components/camel-stream/src/test/java/org/apache/camel/component/stream/SplitStreamFileTest.java
index 19b7e66..f0766b6 100644
--- a/components/camel-stream/src/test/java/org/apache/camel/component/stream/SplitStreamFileTest.java
+++ b/components/camel-stream/src/test/java/org/apache/camel/component/stream/SplitStreamFileTest.java
@@ -44,7 +44,7 @@ public class SplitStreamFileTest extends CamelTestSupport {
         File file = new File("target/stream/splitFile.txt");
         String result = IOConverter
                 .toString(file, new DefaultExchange(context));
-        assertEquals("Get a wrong result", "A\nB\nC\nD\nA\nB\n", result);
+        assertEquals("Get a wrong result", "A" + LS + "B" + LS + "C" + LS + "D" + LS + "A" + LS + "B" + LS, result);
 
     }
 
diff --git a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesLastStrategyTest.java b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesLastStrategyTest.java
index 279bae0..6beb7d3 100644
--- a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesLastStrategyTest.java
+++ b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamGroupLinesLastStrategyTest.java
@@ -35,11 +35,11 @@ public class StreamGroupLinesLastStrategyTest extends StreamGroupLinesStrategyTe
         assertMockEndpointsSatisfied();
 
         Object result = mock.getExchanges().get(0).getIn().getBody();
-        assertEquals("Get a wrong result.", "A\nB\nC\nD\n", result);
+        assertEquals("Get a wrong result.", "A" + LS + "B" + LS + "C" + LS + "D" + LS, result);
 
         // we did not have 4 lines but since its the last it was triggered anyway
         Object result2 = mock.getExchanges().get(1).getIn().getBody();
-        assertEquals("Get a wrong result.", "E\nF\n", result2);
+        assertEquals("Get a wrong result.", "E" + LS + "F" + LS, result2);
     }
 
     @Override
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 10bb6af..dccf3e3 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
@@ -57,10 +57,10 @@ public class StreamGroupLinesStrategyTest extends StreamGroupLinesTest {
         assertMockEndpointsSatisfied();
 
         Object result = mock.getExchanges().get(0).getIn().getBody();
-        assertEquals("Get a wrong result.", "A\nB\nC\n", result);
+        assertEquals("Get a wrong result.", "A" + LS + "B" + LS + "C" + LS, result);
 
         Object result2 = mock.getExchanges().get(1).getIn().getBody();
-        assertEquals("Get a wrong result.", "D\nE\nF\n", result2);
+        assertEquals("Get a wrong result.", "D" + LS + "E" + LS + "F" + LS, result2);
     }
 
     @Override
diff --git a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamHeaderTest.java b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamHeaderTest.java
index 90c95e3..3233538 100644
--- a/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamHeaderTest.java
+++ b/components/camel-stream/src/test/java/org/apache/camel/component/stream/StreamHeaderTest.java
@@ -36,7 +36,7 @@ public class StreamHeaderTest extends CamelTestSupport {
     public void testStringContent() {
         template.sendBody("direct:in", "Hello");
         // StreamProducer appends \n in text mode
-        assertEquals("Hello\n", sb.toString());
+        assertEquals("Hello" + LS, sb.toString());
     }
 
     @Test

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.

[camel] 02/02: camel-stream: speed-up tests by not forking the JVM for every test executed

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ee49be12c9e9312c5e87d8a7cbe2ed6817e0b903
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Nov 12 23:11:39 2017 +0100

    camel-stream: speed-up tests by not forking the JVM for every test executed
---
 components/camel-stream/pom.xml | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/components/camel-stream/pom.xml b/components/camel-stream/pom.xml
index f1be987..812449c 100644
--- a/components/camel-stream/pom.xml
+++ b/components/camel-stream/pom.xml
@@ -73,17 +73,4 @@
 
     </dependencies>
 
-    <build>
-        <plugins>
-            <!-- use per test fork mode to avoid side effects -->
-            <plugin>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <configuration>
-          		<forkCount>1</forkCount>
-	  		<reuseForks>false</reuseForks>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.