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/07 09:35:05 UTC

svn commit: r1814470 - in /jmeter/trunk/src: core/org/apache/jmeter/functions/AbstractFunction.java functions/org/apache/jmeter/functions/DigestEncode.java

Author: pmouawad
Date: Tue Nov  7 09:35:04 2017
New Revision: 1814470

URL: http://svn.apache.org/viewvc?rev=1814470&view=rev
Log:
Bug 61724 - Add __digest function to provide computing of Hashes (SHA-XXX, MDX)
Fix tests failure
Bugzilla Id: 61724

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/functions/AbstractFunction.java
    jmeter/trunk/src/functions/org/apache/jmeter/functions/DigestEncode.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/functions/AbstractFunction.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/functions/AbstractFunction.java?rev=1814470&r1=1814469&r2=1814470&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/functions/AbstractFunction.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/functions/AbstractFunction.java Tue Nov  7 09:35:04 2017
@@ -143,21 +143,24 @@ public abstract class AbstractFunction i
     }
     
     /**
-     * Utility method to store value in a variable 
-     * 
-     * @param value value of variable to update
-     * @param values array of {@link CompoundVariable} from which variable name will be extracted
-     * @param index index of variable in values array 
+     * Utility method to store value in a variable
+     * @param value
+     *            value of variable to update
+     * @param values
+     *            array of {@link CompoundVariable} from which variable name
+     *            will be extracted
+     * @param index
+     *            index of variable in values array
      */
-	protected final void addVariableValue(String value, CompoundVariable[] values, int index) {
-		if (values.length > index) {
-			String variableName = values[index].execute().trim();
-			if (StringUtils.isNotEmpty(variableName)) {
-				JMeterVariables vars = getVariables();
-				if (vars != null) {
-					vars.put(variableName, value);
-				}
-			}
-		}
-	}
+    protected final void addVariableValue(String value, CompoundVariable[] values, int index) {
+        if (values.length > index) {
+            String variableName = values[index].execute().trim();
+            if (StringUtils.isNotEmpty(variableName)) {
+                JMeterVariables vars = getVariables();
+                if (vars != null) {
+                    vars.put(variableName, value);
+                }
+            }
+        }
+    }
 }

Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/DigestEncode.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/DigestEncode.java?rev=1814470&r1=1814469&r2=1814470&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/DigestEncode.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/DigestEncode.java Tue Nov  7 09:35:04 2017
@@ -131,4 +131,4 @@ public class DigestEncode extends Abstra
     public List<String> getArgumentDesc() {
         return desc;
     }
-}
\ No newline at end of file
+}