Author: sebb
Date: Tue Feb 3 01:30:21 2009
New Revision: 740182
URL: http://svn.apache.org/viewvc?rev=740182&view=rev
Log:
Another split test
Modified:
jakarta/jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java
Modified:
jakarta/jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java?rev=740182&r1=740181&r2=740182&view=diff
==============================================================================
--- jakarta/jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java
(original)
+++ jakarta/jmeter/trunk/test/src/org/apache/jorphan/util/TestJorphanUtils.java
Tue Feb 3 01:30:21 2009
@@ -66,6 +66,8 @@
assertEquals("img src=xyz ", JOrphanUtils.replaceFirst("img src=xyz
alt=\"\" ", "alt=\"\" ", ""));
}
+ // Note: the split tests should agree as far as possible with
CSVSaveService.csvSplitString()
+
// Tests for split(String,String,boolean)
public void testSplit1() {
String in = "a,bc,,"; // Test ignore trailing split characters
@@ -169,6 +171,12 @@
}
+ // Empty string
+ public void testEmpty(){
+ String out[] = JOrphanUtils.split("", ",",false);
+ assertEquals(0,out.length);
+ }
+
// Tests for split(String,String,String)
public void testSplitSSS1() {
String in = "a,bc,,"; // Test non-empty parameters
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]