jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1819164 - /jmeter/trunk/test/src/org/apache/jmeter/report/core/SampleMetadataParserSpec.groovy
Date Sat, 23 Dec 2017 15:53:33 GMT
Author: pmouawad
Date: Sat Dec 23 15:53:33 2017
New Revision: 1819164

URL: http://svn.apache.org/viewvc?rev=1819164&view=rev
Log:
Bug 61900 - Report Generator : Report generation fails if separator is a regex reserved char
like '|'
Fix test
Bugzilla Id: 61900

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/report/core/SampleMetadataParserSpec.groovy

Modified: jmeter/trunk/test/src/org/apache/jmeter/report/core/SampleMetadataParserSpec.groovy
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/report/core/SampleMetadataParserSpec.groovy?rev=1819164&r1=1819163&r2=1819164&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/report/core/SampleMetadataParserSpec.groovy (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/report/core/SampleMetadataParserSpec.groovy Sat
Dec 23 15:53:33 2017
@@ -19,10 +19,11 @@ package org.apache.jmeter.report.core;
 
 import org.apache.jmeter.junit.spock.JMeterSpec;
 import org.apache.jmeter.report.core.SampleMetaDataParser;
+import spock.lang.Unroll
 
 class SampleMetadataParserSpec extends JMeterSpec {
 
-    
+    @Unroll
     def "Parse headers (#headers) using separator (#separator) and get (#expectedNumberOfColumns)"()
{
         given:
             def dataParser = new SampleMetaDataParser(separator);
@@ -31,10 +32,10 @@ class SampleMetadataParserSpec extends J
         then:
             metadata.columns.size() == expectedNumberOfColumns;
         where:
-            separator   | headers   	| expectedNumberOfColumns
-            ";" 		| "a;b;c;d;e"  	| 5
+            separator   	| headers   	| expectedNumberOfColumns
+            ';'	as char		| "a;b;c;d;e"  	| 5
             // This should fail
-            "|"  		| "a|b|c|d|e" 	| 6
+            '|' as char 	| "a|b|c|d|e" 	| 5
     }
 
 }



Mime
View raw message