camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r887120 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java
Date Fri, 04 Dec 2009 09:01:30 GMT
Author: davsclaus
Date: Fri Dec  4 09:01:27 2009
New Revision: 887120

URL: http://svn.apache.org/viewvc?rev=887120&view=rev
Log:
Fixed unit test.

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java?rev=887120&r1=887119&r2=887120&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java Fri
Dec  4 09:01:27 2009
@@ -18,12 +18,14 @@
 
 import java.io.ByteArrayInputStream;
 import java.util.Date;
+import java.util.Locale;
 
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.InvalidPayloadException;
 import org.apache.camel.RuntimeCamelException;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.util.ObjectHelper;
 
 public class ConvertBodyTest extends ContextTestSupport {
 
@@ -88,8 +90,14 @@
 
     public void testConvertToStringCharsetFail() throws Exception {
 
-        String body = "Hell\u00F6 W\u00F6rld";
+        // does not work on AIX
+        String osName = System.getProperty("os.name").toLowerCase(Locale.US);
+        boolean aix = osName.indexOf("aix") > -1;
+        if (aix) {
+            return;
+        }
 
+        String body = "Hell\u00F6 W\u00F6rld";
 
         MockEndpoint result = getMockEndpoint("mock:result");
         result.expectedBodiesReceived(body);



Mime
View raw message