@@ -0,0 +1,1503 @@
+/*%0A * Copyright 2001-2005 The Apache Software Foundation.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * %0A */%0A%0Apackage org.apache.jmeter.protocol.http.control.gui;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase;%0A%0A/**%0A * @version $Revision$ on $Date$%0A */%0Apublic class TestHttpTestSampleGui extends TestCase %7B%0A%09%09private HttpTestSampleGui gui;%0A%0A%09%09public TestHttpTestSampleGui(String name) %7B%0A%09%09%09super(name);%0A%09%09%7D%0A%0A%09%09public void setUp() %7B%0A%09%09%09gui = new HttpTestSampleGui();%0A%09%09%7D%0A%0A%09%09public void testCloneSampler() throws Exception %7B%0A%09%09%09HTTPSamplerBase sampler = (HTTPSamplerBase) gui.createTestElement();%0A%09%09%09sampler.addArgument(%22param%22, %22value%22);%0A%09%09%09HTTPSamplerBase clonedSampler = (HTTPSamplerBase) sampler.clone();%0A%09%09%09clonedSampler.setRunningVersion(true);%0A%09%09%09sampler.getArguments().getArgument(0).setValue(%22new value%22);%0A%09%09%09assertEquals(%22Sampler didn't clone correctly%22, %22new value%22, sampler.getArguments().getArgument(0)%0A%09%09%09%09%09.getValue());%0A%09%09%7D%0A%7D%0A

Move last of unit test code to test tree