@@ -0,0 +1,2269 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements.  See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License.  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.sampler;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.net.URI;%0Aimport java.net.URISyntaxException;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.apache.http.client.methods.HttpRequestBase;%0Aimport org.apache.jmeter.protocol.http.util.HTTPConstants;%0Aimport org.junit.Test;%0A%0Apublic class TestHttpWebdav %7B%0A%0A    private static final List%3CString%3E VALID_METHODS = Arrays.asList(%22foo%22,%0A            %22BAR%22, %22123%22, %22VERSION-CONTROL%22, HTTPConstants.PROPFIND);%0A%0A    private static final List%3CString%3E INVALID_METHODS = Arrays.asList(%22%22, null,%0A            %22b%C3%A4r%22, %22with blank%22, %22%5C%22%22, %22Foo(bar)%22, %22:thing%22, %22%3Cxml%3E%22);%0A%0A    @Test%0A    public void testIsWebdavMethod() %7B%0A        for (String method : VALID_METHODS) %7B%0A            assertTrue(method + %22 is a HttpWebdav method%22,%0A                    HttpWebdav.isWebdavMethod(method));%0A        %7D%0A        for (String method : INVALID_METHODS) %7B%0A            assertFalse(method + %22 is not a HttpWebdav method%22,%0A                    HttpWebdav.isWebdavMethod(method));%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testGetMethod() throws URISyntaxException %7B%0A        for (String method : VALID_METHODS) %7B%0A            HttpRequestBase request = new HttpWebdav(method, new URI(%0A                    %22http://example.com%22));%0A            assertEquals(method, request.getMethod());%0A        %7D%0A    %7D%0A%0A%7D%0A

Add testcase for HttpWebdav.