1 19 package org.netbeans.modules.masterfs; 20 21 import junit.framework.*; 22 import org.netbeans.junit.NbTestCase; 23 import org.openide.filesystems.FileObject; 24 import org.openide.filesystems.URLMapper; 25 import org.openide.filesystems.FileUtil; 26 import java.net.URL ; 27 28 31 public class MasterURLMapperTest extends NbTestCase { 32 33 public MasterURLMapperTest(String testName) { 34 super(testName); 35 } 36 37 protected void setUp() throws Exception { 38 } 39 40 protected void tearDown() throws Exception { 41 } 42 43 public static Test suite() { 44 TestSuite suite = new TestSuite(MasterURLMapperTest.class); 45 46 return suite; 47 } 48 49 public void testGetURL64012() throws Exception { 50 int type = URLMapper.NETWORK; 51 FileObject fo = FileUtil.toFileObject(getWorkDir()); 52 assertNotNull(fo); 53 54 MasterURLMapper instance = new MasterURLMapper(); 55 URL result = instance.getURL(fo, type); 56 assertNull(result); } 58 59 } 60 | Popular Tags |