camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] git commit: Fix unit test, so it runs on all platforms
Date Mon, 12 May 2014 08:10:33 GMT
Fix unit test, so it runs on all platforms

Replace usage of hard-coded Unix file name separator ("/") with
java.io.File.separator constant, so the test also runs on Windows
platforms.

Signed-off-by: Gregor Zurowski <gregor@zurowski.org>


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6224f46a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6224f46a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6224f46a

Branch: refs/heads/camel-2.12.x
Commit: 6224f46a49695681d91dd3dd4c428a767751ff96
Parents: f737cbb
Author: Gregor Zurowski <gregor@zurowski.org>
Authored: Mon May 12 00:40:37 2014 -0400
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Mon May 12 16:08:45 2014 +0800

----------------------------------------------------------------------
 .../camel/processor/interceptor/DefaultTraceEventMessageTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6224f46a/camel-core/src/test/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessageTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessageTest.java
b/camel-core/src/test/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessageTest.java
old mode 100644
new mode 100755
index dd22be0..de1705a
--- a/camel-core/src/test/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessageTest.java
+++ b/camel-core/src/test/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessageTest.java
@@ -76,7 +76,7 @@ public class DefaultTraceEventMessageTest extends ContextTestSupport {
         exchange.getIn().setBody(new File("target/test"));
         DefaultTraceEventMessage em = new DefaultTraceEventMessage(new Date(), null, exchange);
         
-        assertEquals("Get a wrong body string", "[Body is file based: target/test]", em.getBody());
+        assertEquals("Get a wrong body string", "[Body is file based: target" + File.separator
+ "test]", em.getBody());
         
         exchange.getIn().setBody(new ByteArrayInputStream("target/test".getBytes()));
         em = new DefaultTraceEventMessage(new Date(), null, exchange);


Mime
View raw message