jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1721971 - /jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java
Date Mon, 28 Dec 2015 18:18:53 GMT
Author: pmouawad
Date: Mon Dec 28 18:18:53 2015
New Revision: 1721971

URL: http://svn.apache.org/viewvc?rev=1721971&view=rev
Log:
Fix NPE if test fails one day

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java?rev=1721971&r1=1721970&r2=1721971&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java Mon Dec 28 18:18:53
2015
@@ -30,7 +30,7 @@ public class TestCSVSaveService extends
         super(name);
     }
     
-    private void checkSplitString(String input, char delim, String []expected) throws Exception
{
+    private void checkSplitString(String input, char delim, String[] expected) throws Exception
{
         String out[] = CSVSaveService.csvSplitString(input, delim);     
         checkStrings(expected, out);
     }
@@ -87,7 +87,7 @@ public class TestCSVSaveService extends
 
     public void testSplitBadQuote() throws Exception {
         try {
-            checkSplitString("a\"b",',',null);
+            checkSplitString("a\"b",',',new String[]{});
             fail("Should have generated IOException");
         } catch (IOException e) {
         }



Mime
View raw message