jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380561 - /jmeter/trunk/test/src/org/apache/jmeter/engine/util/PackageTest.java
Date Tue, 04 Sep 2012 11:25:32 GMT
Author: pmouawad
Date: Tue Sep  4 11:25:32 2012
New Revision: 1380561

URL: http://svn.apache.org/viewvc?rev=1380561&view=rev
Log:
remove useless fields

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/engine/util/PackageTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/engine/util/PackageTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/engine/util/PackageTest.java?rev=1380561&r1=1380560&r2=1380561&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/engine/util/PackageTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/engine/util/PackageTest.java Tue Sep  4 11:25:32
2012
@@ -37,10 +37,6 @@ import org.apache.jmeter.threads.JMeterV
  * as it is needed to resolve the functions.
  */
 public class PackageTest extends JMeterTestCase {
-    private Map<String, String> variables;
-
-    private SampleResult result;
-
     private ReplaceStringWithFunctions transformer;
 
     public PackageTest(String arg0) {
@@ -52,10 +48,10 @@ public class PackageTest extends JMeterT
     @Override
     public void setUp() {
         jmctx = JMeterContextService.getContext();
-        variables = new HashMap<String, String>();
+        Map<String, String> variables = new HashMap<String, String>();
         variables.put("my_regex", ".*");
         variables.put("server", "jakarta.apache.org");
-        result = new SampleResult();
+        SampleResult result = new SampleResult();
         result.setResponseData("<html>hello world</html> costs: $3.47,$5.67",
null);
         transformer = new ReplaceStringWithFunctions(new CompoundVariable(), variables);
         jmctx.setVariables(new JMeterVariables());



Mime
View raw message