/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.masterfs; import junit.framework.*; import org.netbeans.junit.NbTestCase; import org.openide.filesystems.FileObject; import org.openide.filesystems.URLMapper; import org.openide.filesystems.FileUtil; import java.net.URL; /** * @author Radek Matous */ public class MasterURLMapperTest extends NbTestCase { public MasterURLMapperTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(MasterURLMapperTest.class); return suite; } public void testGetURL64012() throws Exception { int type = URLMapper.NETWORK; FileObject fo = FileUtil.toFileObject(getWorkDir()); assertNotNull(fo); MasterURLMapper instance = new MasterURLMapper(); URL result = instance.getURL(fo, type); assertNull(result);//NOI18N //assertFalse("file".equals(result.getProtocol()));//NOI18N } }