// $Header$
/*
 * Copyright 2003-2004 The Apache Software Foundation.
 *
 * Licensed 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.
 * 
*/

/*
 * Created on Apr 30, 2003
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package org.apache.jmeter.junit.stubs;

import org.apache.jmeter.samplers.AbstractSampler;
import org.apache.jmeter.samplers.Entry;
import org.apache.jmeter.samplers.SampleResult;

/**
 * @author ano ano
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class TestSampler extends AbstractSampler
{

    /* (non-Javadoc)
     * @see 
org.apache.jmeter.samplers.Sampler#sample(org.apache.jmeter.samplers.Entry)
     */
    public SampleResult sample(Entry e)
    {
        // TODO Auto-generated method stub
        return null;
    }

    public TestSampler(String name)
    {
        setName(name);
    }

    public TestSampler()
    {}
    
    public String toString()
    {
        return getName();
    }

}


@@ -1169,16 +1169,48 @@
 pler%0A%7B%0A%0A
+    private long wait = 0;%0A    %0A
     /* (
@@ -1222,16 +1222,16 @@
 avadoc)%0A
-
      * @
@@ -1377,62 +1377,302 @@
     
-// TODO Auto-generated method stub%0A        return null
+if (wait %3E 0) %7B%0A            try %7B%0A                Thread.sleep(wait);%0A            %7D catch (InterruptedException e1) %7B%0A                // ignore%0A            %7D%0A        %7D%0A        return null;%0A    %7D%0A%0A    public TestSampler(String name, long wait)%0A    %7B%0A        setName(name);%0A        this.wait=wait
 ;%0A  

Add wait function to dummy sampler