camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] branch master updated: Fixed camel-bindy build
Date Mon, 06 Apr 2020 21:30:17 GMT
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


The following commit(s) were added to refs/heads/master by this push:
     new 36ce813  Fixed camel-bindy build
36ce813 is described below

commit 36ce8130b3236e1b15815039b3dd134d4de3b3fe
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Mon Apr 6 23:29:30 2020 +0200

    Fixed camel-bindy build
---
 .../java/org/apache/camel/dataformat/bindy/UnicodeHelperTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/UnicodeHelperTest.java
b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/UnicodeHelperTest.java
index 0dc5533..b2e7fdb 100644
--- a/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/UnicodeHelperTest.java
+++ b/components/camel-bindy/src/test/java/org/apache/camel/dataformat/bindy/UnicodeHelperTest.java
@@ -166,7 +166,7 @@ public class UnicodeHelperTest {
     @Test
     public void testIndexOf() {
         final UnicodeHelper lh = new UnicodeHelper("a", Method.CODEPOINTS);
-        Assert.assertEquals(-1, lh.indexOf('b'));
+        Assert.assertEquals(-1, lh.indexOf("b"));
 
         final UnicodeHelper lh2 = new UnicodeHelper(
             "a" + new String(Character.toChars(0x1f600)) + "a" + UCSTR + "A" + "k\u035fh"
+ "z"
@@ -186,7 +186,7 @@ public class UnicodeHelperTest {
     @Test
     public void testIndexOf2() {
         final UnicodeHelper lh = new UnicodeHelper("a", Method.GRAPHEME);
-        Assert.assertEquals(-1, lh.indexOf('b'));
+        Assert.assertEquals(-1, lh.indexOf("b"));
 
         final UnicodeHelper lh2 = new UnicodeHelper(
             "a" + new String(Character.toChars(0x1f600)) + "a" + UCSTR + "A" + "k\u035fh"
+ "z"
@@ -201,8 +201,8 @@ public class UnicodeHelperTest {
         Assert.assertEquals(11, lh2.indexOf(UCSTR), 8);
         
         final UnicodeHelper lh3 = new UnicodeHelper("mm̂mm̂m", Method.GRAPHEME);
-        Assert.assertEquals(0, lh3.indexOf('m'));
-        Assert.assertEquals(2, lh3.indexOf('m', 1));
+        Assert.assertEquals(0, lh3.indexOf("m"));
+        Assert.assertEquals(2, lh3.indexOf("m", 1));
         Assert.assertEquals(3, lh3.indexOf("m̂", 2));
     }
     


Mime
View raw message