camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1467870 - /camel/trunk/camel-core/src/test/java/org/apache/camel/util/StingQuoteHelperTest.java
Date Mon, 15 Apr 2013 07:07:07 GMT
Author: davsclaus
Date: Mon Apr 15 07:07:06 2013
New Revision: 1467870

URL: http://svn.apache.org/r1467870
Log:
CAMEL-6271: StringQuoteHelper - Fixed empty quotes being parsed and returned in answer

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/util/StingQuoteHelperTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/util/StingQuoteHelperTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/util/StingQuoteHelperTest.java?rev=1467870&r1=1467869&r2=1467870&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/util/StingQuoteHelperTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/util/StingQuoteHelperTest.java Mon
Apr 15 07:07:06 2013
@@ -97,6 +97,24 @@ public class StingQuoteHelperTest extend
         assertEquals(2, out.length);
         assertEquals("http:", out[0]);
         assertEquals("", out[1]);
+
+        out = StringQuoteHelper.splitSafeQuote("'Hello Camel', 5, true", ',', false);
+        assertEquals(3, out.length);
+        assertEquals("Hello Camel", out[0]);
+        assertEquals("5", out[1]);
+        assertEquals("true", out[2]);
+
+        out = StringQuoteHelper.splitSafeQuote("'Hello Camel',5,true", ',', false);
+        assertEquals(3, out.length);
+        assertEquals("Hello Camel", out[0]);
+        assertEquals("5", out[1]);
+        assertEquals("true", out[2]);
+
+        out = StringQuoteHelper.splitSafeQuote("   'Hello Camel',  5   ,  true   ", ',',
false);
+        assertEquals(3, out.length);
+        assertEquals("Hello Camel", out[0]);
+        assertEquals("5", out[1]);
+        assertEquals("true", out[2]);
     }
 
 }



Mime
View raw message