1 16 package org.apache.commons.vfs.provider.local.test; 17 18 import org.apache.commons.vfs.FileObject; 19 import org.apache.commons.vfs.test.AbstractProviderTestCase; 20 21 import java.io.File ; 22 23 28 public class FileNameTests 29 extends AbstractProviderTestCase 30 { 31 34 public void testAbsoluteFileName() throws Exception 35 { 36 String fileName = new File ("testdir").getAbsolutePath(); 38 FileObject absFile = getManager().resolveFile(fileName); 39 40 String uri = "file://" + fileName.replace(File.separatorChar, '/'); 42 FileObject uriFile = getManager().resolveFile(uri); 43 44 assertSame("file object", absFile, uriFile); 45 } 46 } 47 | Popular Tags |