You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2012/08/21 01:47:28 UTC

svn commit: r1375324 - in /jmeter/trunk/test/src/org/apache/jmeter: extractor/ protocol/http/control/ protocol/http/sampler/

Author: sebb
Date: Mon Aug 20 23:47:28 2012
New Revision: 1375324

URL: http://svn.apache.org/viewvc?rev=1375324&view=rev
Log:
Standardise on static final
No code change

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/extractor/TestXPathExtractor.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
    jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/extractor/TestXPathExtractor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/extractor/TestXPathExtractor.java?rev=1375324&r1=1375323&r2=1375324&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/extractor/TestXPathExtractor.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/extractor/TestXPathExtractor.java Mon Aug 20 23:47:28 2012
@@ -43,8 +43,8 @@ public class TestXPathExtractor extends 
 
         private JMeterContext jmctx;
 
-        private final static String VAL_NAME = "value";
-        private final static String VAL_NAME_NR = "value_matchNr";
+        private static final String VAL_NAME = "value";
+        private static final String VAL_NAME_NR = "value_matchNr";
         @Override
         public void setUp() throws UnsupportedEncodingException {
             jmctx = JMeterContextService.getContext();

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java?rev=1375324&r1=1375323&r2=1375324&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java Mon Aug 20 23:47:28 2012
@@ -51,11 +51,11 @@ import junit.extensions.TestSetup;
  */
 public class TestHTTPMirrorThread extends TestCase {
     /** The encodings used for http headers and control information */
-    private final static String ISO_8859_1 = "ISO-8859-1"; // $NON-NLS-1$
-    private final static String UTF_8 = "UTF-8"; // $NON-NLS-1$
+    private static final String ISO_8859_1 = "ISO-8859-1"; // $NON-NLS-1$
+    private static final String UTF_8 = "UTF-8"; // $NON-NLS-1$
 
     private static final byte[] CRLF = { 0x0d, 0x0a };
-    private final static int HTTP_SERVER_PORT = 8181;
+    private static final int HTTP_SERVER_PORT = 8181;
 
     public TestHTTPMirrorThread(String arg0) {
         super(arg0);

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java?rev=1375324&r1=1375323&r2=1375324&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java Mon Aug 20 23:47:28 2012
@@ -47,8 +47,8 @@ public class PostWriterTest extends Test
     private static final Logger log = LoggingManager.getLoggerForClass();
 
     private static final String UTF_8 = "UTF-8";
-    private final static String HTTP_ENCODING = "ISO-8859-1";
-    private final static byte[] CRLF = { 0x0d, 0x0A };
+    private static final String HTTP_ENCODING = "ISO-8859-1";
+    private static final byte[] CRLF = { 0x0d, 0x0A };
     private static byte[] TEST_FILE_CONTENT;
     
     private StubURLConnection connection;

Modified: jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java?rev=1375324&r1=1375323&r2=1375324&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java Mon Aug 20 23:47:28 2012
@@ -56,12 +56,12 @@ import junit.extensions.TestSetup;
  * started when the unit tests are executed.
  */
 public class TestHTTPSamplersAgainstHttpMirrorServer extends JMeterTestCase {
-    private final static int HTTP_SAMPLER = 0;
-    private final static int HTTP_SAMPLER2 = 1;
-    private final static int HTTP_SAMPLER3 = 2;
+    private static final int HTTP_SAMPLER = 0;
+    private static final int HTTP_SAMPLER2 = 1;
+    private static final int HTTP_SAMPLER3 = 2;
     
     /** The encodings used for http headers and control information */
-    private final static String ISO_8859_1 = "ISO-8859-1"; // $NON-NLS-1$
+    private static final String ISO_8859_1 = "ISO-8859-1"; // $NON-NLS-1$
     private static final String US_ASCII = "US-ASCII"; // $NON-NLS-1$
 
     private static final byte[] CRLF = { 0x0d, 0x0A };