Author: sebb
Date: Fri Feb 9 05:30:40 2007
New Revision: 505282
URL: http://svn.apache.org/viewvc?view=rev&rev=505282
Log:
Replace JOrphanUtils.encode with URLEncoder.encode
Modified:
jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java
Modified:
jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java?view=diff&rev=505282&r1=505281&r2=505282
==============================================================================
---
jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java
(original)
+++
jakarta/jmeter/branches/rel-2-2/test/src/org/apache/jmeter/protocol/http/modifier/TestAnchorModifier.java
Fri Feb 9 05:30:40 2007
@@ -21,6 +21,7 @@
import java.io.FileInputStream;
import java.net.MalformedURLException;
import java.net.URL;
+import java.net.URLEncoder;
import org.apache.jmeter.junit.JMeterTestCase;
import org.apache.jmeter.protocol.http.sampler.HTTPNullSampler;
@@ -302,7 +303,7 @@
public void testSpecialCharParse() throws Exception {
String specialChars = "-_.!~*'()%25";// These are some of the special
characters
- String htmlEncodedFixture = JOrphanUtils.encode(specialChars, "UTF-8");
+ String htmlEncodedFixture = URLEncoder.encode(specialChars, "UTF-8");
HTTPSamplerBase config = makeUrlConfig(".*index.html");
config.addArgument("test", ".*");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]