Author: sebb
Date: Sun Nov 13 12:46:22 2005
New Revision: 333695

URL: http://svn.apache.org/viewcvs?rev=333695&view=rev
Log:
Removed test code to test tree

Modified:
    
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java

Modified: 
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java?rev=333695&r1=333694&r2=333695&view=diff
==============================================================================
--- 
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 (original)
+++ 
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 Sun Nov 13 12:46:22 2005
@@ -526,125 +526,4 @@
                        }
                }
        }
-
-       public static class Test extends junit.framework.TestCase {
-               public Test(String name) {
-                       super(name);
-               }
-
-               public void testArgumentWithoutEquals() throws Exception {
-                       HTTPSampler sampler = new HTTPSampler();
-                       sampler.setProtocol("http");
-                       sampler.setMethod(GET);
-                       sampler.setPath("/index.html?pear");
-                       sampler.setDomain("www.apache.org");
-                       assertEquals("http://www.apache.org/index.html?pear";, 
sampler.getUrl().toString());
-               }
-
-               public void testMakingUrl() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.addArgument("param1", "value1");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       
assertEquals("http://www.apache.org/index.html?param1=value1";, 
config.getUrl().toString());
-               }
-
-               public void testMakingUrl2() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.addArgument("param1", "value1");
-                       config.setPath("/index.html?p1=p2");
-                       config.setDomain("www.apache.org");
-                       
assertEquals("http://www.apache.org/index.html?param1=value1&p1=p2";, 
config.getUrl().toString());
-               }
-
-               public void testMakingUrl3() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(POST);
-                       config.addArgument("param1", "value1");
-                       config.setPath("/index.html?p1=p2");
-                       config.setDomain("www.apache.org");
-                       assertEquals("http://www.apache.org/index.html?p1=p2";, 
config.getUrl().toString());
-               }
-
-               // test cases for making Url, and exercise method
-               // addArgument(String name,String value,String metadata)
-
-               public void testMakingUrl4() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.addArgument("param1", "value1", "=");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       
assertEquals("http://www.apache.org/index.html?param1=value1";, 
config.getUrl().toString());
-               }
-
-               public void testMakingUrl5() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.addArgument("param1", "", "=");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       
assertEquals("http://www.apache.org/index.html?param1=";, 
config.getUrl().toString());
-               }
-
-               public void testMakingUrl6() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.addArgument("param1", "", "");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       assertEquals("http://www.apache.org/index.html?param1";, 
config.getUrl().toString());
-               }
-
-               // test cases for making Url, and exercise method
-               // parseArguments(String queryString)
-
-               public void testMakingUrl7() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.parseArguments("param1=value1");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       
assertEquals("http://www.apache.org/index.html?param1=value1";, 
config.getUrl().toString());
-               }
-
-               public void testMakingUrl8() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.parseArguments("param1=");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       
assertEquals("http://www.apache.org/index.html?param1=";, 
config.getUrl().toString());
-               }
-
-               public void testMakingUrl9() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.parseArguments("param1");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       assertEquals("http://www.apache.org/index.html?param1";, 
config.getUrl().toString());
-               }
-
-               public void testMakingUrl10() throws Exception {
-                       HTTPSampler config = new HTTPSampler();
-                       config.setProtocol("http");
-                       config.setMethod(GET);
-                       config.parseArguments("");
-                       config.setPath("/index.html");
-                       config.setDomain("www.apache.org");
-                       assertEquals("http://www.apache.org/index.html";, 
config.getUrl().toString());
-               }
-       }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to