/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */

package org.apache.jmeter.protocol.http.sampler;

import java.net.URL;

/**
 * Dummy HTTPSampler class for use by classes that need an HTTPSampler, but that
 * don't need an actual sampler, e.g. for Parsing testing.
 */
public final class HTTPNullSampler extends HTTPSamplerBase {

    private static final long serialVersionUID = 240L;

    /*
     * (non-Javadoc)
     * 
     * @see org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase#sample(java.net.URL,
     *      java.lang.String, boolean, int)
     */
    @Override
    protected HTTPSampleResult sample(URL u, String s, boolean b, int i) {
        throw new UnsupportedOperationException("For test purposes only");
    }

}

@@ -1146,134 +1146,83 @@
   /*
-%0A     * (non-Javadoc)%0A     * %0A     * @see org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase#sample(java.net.URL,
+*%0A     * Returns a sample Result with the request fields filled in.
 %0A     * 
     
@@ -1221,44 +1221,29 @@
   * 
+%0A
      
-java.lang.String, boolean, int)
+* %7B@inheritDoc%7D
 %0A   
@@ -1313,17 +1313,22 @@
  String 
-s
+method
 , boolea
@@ -1333,20 +1333,194 @@
 ean 
-b, int i) %7B%0A
+areFollowingRedirec, int depth) %7B%0A        HTTPSampleResult res = new HTTPSampleResult();%0A        res.sampleStart();%0A        res.setURL(u);%0A        res.sampleEnd();%0A        return res;%0A//
     

Return a sample result, so can test methods that perform a sample