Search in sources :

Example 1 with NullSampler

use of org.apache.jmeter.samplers.NullSampler in project jmeter by apache.

the class TestURLRewritingModifier method testNonHTTPSampler.

@Test
public void testNonHTTPSampler() throws Exception {
    Sampler sampler = new NullSampler();
    response = new SampleResult();
    context.setCurrentSampler(sampler);
    context.setPreviousResult(response);
    mod.process();
}
Also used : HTTPNullSampler(org.apache.jmeter.protocol.http.sampler.HTTPNullSampler) NullSampler(org.apache.jmeter.samplers.NullSampler) Sampler(org.apache.jmeter.samplers.Sampler) SampleResult(org.apache.jmeter.samplers.SampleResult) HTTPNullSampler(org.apache.jmeter.protocol.http.sampler.HTTPNullSampler) NullSampler(org.apache.jmeter.samplers.NullSampler) Test(org.junit.Test)

Aggregations

HTTPNullSampler (org.apache.jmeter.protocol.http.sampler.HTTPNullSampler)1 NullSampler (org.apache.jmeter.samplers.NullSampler)1 SampleResult (org.apache.jmeter.samplers.SampleResult)1 Sampler (org.apache.jmeter.samplers.Sampler)1 Test (org.junit.Test)1