This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new da6328c8be6 (chores) camel-core: cleanup skipping tests on AIX (#11277)
da6328c8be6 is described below
commit da6328c8be615c3bae1e676be2fe06c6cba943bf
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Sep 1 16:35:46 2023 +0200
(chores) camel-core: cleanup skipping tests on AIX (#11277)
---
.../java/org/apache/camel/processor/ConvertBodyTest.java | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git
a/core/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java
b/core/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java
index e8a8ab1f878..00cbc270294 100644
---
a/core/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/processor/ConvertBodyTest.java
@@ -30,6 +30,8 @@ import org.apache.camel.builder.ExchangeBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledOnOs;
+import org.junit.jupiter.api.condition.OS;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
@@ -183,16 +185,10 @@ public class ConvertBodyTest extends ContextTestSupport {
result.assertIsNotSatisfied();
}
+ // does not work on AIX
+ @DisabledOnOs(OS.AIX)
@Test
public void testConvertToStringCharsetFail() throws Exception {
-
- // does not work on AIX
- String osName =
System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
- boolean aix = osName.indexOf("aix") > -1;
- if (aix) {
- return;
- }
-
String body = "Hell\u00F6 W\u00F6rld";
MockEndpoint result = getMockEndpoint("mock:result");