sebb        2004/07/02 19:36:44

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/control
                        CookieManager.java
  Log:
  Use Null Sampler for tests
  
  Revision  Changes    Path
  1.29      +8 -7      
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
  
  Index: CookieManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- CookieManager.java        20 Jun 2004 00:32:53 -0000      1.28
  +++ CookieManager.java        3 Jul 2004 02:36:44 -0000       1.29
  @@ -39,7 +39,8 @@
   
   import org.apache.jmeter.config.ConfigTestElement;
   import org.apache.jmeter.engine.event.LoopIterationEvent;
  -import org.apache.jmeter.protocol.http.sampler.HTTPSampler;
  +import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase;
  +import org.apache.jmeter.protocol.http.sampler.HTTPNullSampler;
   import org.apache.jmeter.testelement.TestListener;
   import org.apache.jmeter.testelement.property.BooleanProperty;
   import org.apache.jmeter.testelement.property.CollectionProperty;
  @@ -547,10 +548,10 @@
                       "/",
                       false,
                       9999999999L));
  -            HTTPSampler sampler = new HTTPSampler();
  +            HTTPSamplerBase sampler = new HTTPNullSampler();
               sampler.setDomain("jakarta.apache.org");
               sampler.setPath("/index.html");
  -            sampler.setMethod(HTTPSampler.GET);
  +            sampler.setMethod(HTTPSamplerBase.GET);
               assertNotNull(man.getCookieHeaderForURL(sampler.getUrl()));
           }
   
  @@ -564,10 +565,10 @@
                       "/",
                       false,
                       9999999999L));
  -            HTTPSampler sampler = new HTTPSampler();
  +            HTTPSamplerBase sampler = new HTTPNullSampler();
               sampler.setDomain("jakarta.apache.org");
               sampler.setPath("/index.html");
  -            sampler.setMethod(HTTPSampler.GET);
  +            sampler.setMethod(HTTPSamplerBase.GET);
               assertNotNull(man.getCookieHeaderForURL(sampler.getUrl()));
           }
           
  
  
  

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

Reply via email to