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 2017/11/20 21:02:49 UTC

svn commit: r1815858 - /jmeter/trunk/test/src/org/apache/jmeter/functions/TestChangeCase.java

Author: pmouawad
Date: Mon Nov 20 21:02:48 2017
New Revision: 1815858

URL: http://svn.apache.org/viewvc?rev=1815858&view=rev
Log:
Bug 61759 - New __changeCase function
Add a test to reach 100%
Bugzilla Id: 61759

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/functions/TestChangeCase.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/functions/TestChangeCase.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/functions/TestChangeCase.java?rev=1815858&r1=1815857&r2=1815858&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/functions/TestChangeCase.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/functions/TestChangeCase.java Mon Nov 20 21:02:48 2017
@@ -121,12 +121,19 @@ public class TestChangeCase extends JMet
     }
     
     @Test
-    public void testChangeCaseCamelCaseFirstLower2() throws Exception {
+    public void testChangeCaseCamelCaseFirstLowerWithFirstUpperCaseChar() throws Exception {
         params.add(new CompoundVariable("Ab-CD eF"));
         params.add(new CompoundVariable("camel_CASE_FIRST_LOWER"));
         changeCase.setParameters(params);
         String returnValue = changeCase.execute(result, null);
         assertEquals("abCDEF", returnValue);
+        
+        params.clear();
+        params.add(new CompoundVariable(" zadad"));
+        params.add(new CompoundVariable("camel_CASE_FIRST_LOWER"));
+        changeCase.setParameters(params);
+        returnValue = changeCase.execute(result, null);
+        assertEquals("Zadad", returnValue);
     }
     
     @Test(expected=InvalidVariableException.class)