You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2018/01/06 21:22:06 UTC
svn commit: r1820423 -
/jmeter/trunk/test/src/org/apache/jmeter/control/TestSwitchController.java
Author: pmouawad
Date: Sat Jan 6 21:22:05 2018
New Revision: 1820423
URL: http://svn.apache.org/viewvc?rev=1820423&view=rev
Log:
Bug 61771 - SwitchController : Switch field should be trimmed by safety
Add tests
Bugzilla Id: 61771
Modified:
jmeter/trunk/test/src/org/apache/jmeter/control/TestSwitchController.java
Modified: jmeter/trunk/test/src/org/apache/jmeter/control/TestSwitchController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/control/TestSwitchController.java?rev=1820423&r1=1820422&r2=1820423&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/control/TestSwitchController.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/control/TestSwitchController.java Sat Jan 6 21:22:05 2018
@@ -62,7 +62,9 @@ public class TestSwitchController extend
@Test
public void test1() throws Exception {
runSimpleTests("1", "one");
+ runSimpleTests(" 1 ", "one");
runSimpleTests("one", "one"); // Match by name
+ runSimpleTests("one ", "one"); // Match by name with space
}
@Test
@@ -186,6 +188,7 @@ public class TestSwitchController extend
runTest2("7", new String[] { "zero" });
runTest2("5", new String[] { "zero" });
runTest2("4", new String[] { "six" });
+ runTest2("4 ", new String[] { "six" });
runTest2("3", new String[] { "five" });
runTest2("1", new String[] { "one", "two" });
runTest2("2", new String[] { "three", "four" });