Author: sebb Date: Wed Apr 5 13:45:00 2006 New Revision: 391798 URL: http://svn.apache.org/viewcvs?rev=391798&view=rev Log: Fix access problem for test case
Modified: jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/ValueReplacer.java jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/engine/util/TestValueReplacer.java Modified: jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/ValueReplacer.java URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/ValueReplacer.java?rev=391798&r1=391797&r2=391798&view=diff ============================================================================== --- jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/ValueReplacer.java (original) +++ jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/ValueReplacer.java Wed Apr 5 13:45:00 2006 @@ -53,6 +53,9 @@ setUserDefinedVariables(tp.getUserDefinedVariables()); } + boolean containsKey(String k){ + return variables.containsKey(k); + } public void setUserDefinedVariables(Map variables) { this.variables = variables; } Modified: jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/engine/util/TestValueReplacer.java URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/engine/util/TestValueReplacer.java?rev=391798&r1=391797&r2=391798&view=diff ============================================================================== --- jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/engine/util/TestValueReplacer.java (original) +++ jakarta/jmeter/branches/rel-2-1/test/src/org/apache/jmeter/engine/util/TestValueReplacer.java Wed Apr 5 13:45:00 2006 @@ -58,7 +58,7 @@ public void testReverseReplacement() throws Exception { ValueReplacer replacer = new ValueReplacer(variables); assertTrue(variables.getUserDefinedVariables().containsKey("server")); - assertTrue(replacer.variables.containsKey("server")); + assertTrue(replacer.containsKey("server")); TestElement element = new TestPlan(); element.setProperty(new StringProperty("domain", "jakarta.apache.org")); List args = new ArrayList(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]