1 16 package org.apache.commons.vfs.provider.webdav.test; 17 18 import junit.framework.Test; 19 import org.apache.commons.vfs.FileObject; 20 import org.apache.commons.vfs.FileSystemManager; 21 import org.apache.commons.vfs.impl.DefaultFileSystemManager; 22 import org.apache.commons.vfs.provider.temp.TemporaryFileProvider; 23 import org.apache.commons.vfs.provider.webdav.WebdavFileProvider; 24 import org.apache.commons.vfs.test.AbstractProviderTestConfig; 25 import org.apache.commons.vfs.test.ProviderTestSuite; 26 27 32 public class WebdavProviderTestCase 33 extends AbstractProviderTestConfig 34 { 35 public static Test suite() throws Exception 36 { 37 return new ProviderTestSuite(new WebdavProviderTestCase()); 38 } 39 40 43 public void prepare(final DefaultFileSystemManager manager) 44 throws Exception 45 { 46 manager.addProvider("webdav", new WebdavFileProvider()); 47 manager.addProvider("tmp", new TemporaryFileProvider()); 48 } 49 50 53 public FileObject getBaseTestFolder(final FileSystemManager manager) 54 throws Exception 55 { 56 final String uri = System.getProperty("test.webdav.uri"); 57 return manager.resolveFile(uri); 58 } 59 } 60 | Popular Tags |