|
What this is
Other links
The source code/* * 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-2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.core.filesystems; import java.io.*; import java.util.*; import java.net.URL; import org.xml.sax.*; import org.openide.cookies.InstanceCookie; import org.openide.loaders.*; import org.openide.filesystems.*; import org.openide.filesystems.FileSystem; // override java.io.FileSystem import org.openide.util.*; import org.openide.util.lookup.*; import org.openide.xml.*; import org.openide.*; //import junit.framework.*; import org.netbeans.junit.*; public class MIMEResolverImplTest extends NbTestCase { List resolvers; FileObject root; public MIMEResolverImplTest(String testName) { super(testName); } protected void setUp() throws Exception { /* URL u = getClass().getProtectionDomain().getCodeSource().getLocation(); u = new URL(u, "org/netbeans/core/filesystems/code-fs.xml"); */ URL u = this.getClass().getResource ("code-fs.xml"); FileSystem fs = new XMLFileSystem(u); FileObject coderoot = fs.getRoot().getFileObject("root"); coderoot.refresh(); FileObject fos[] = coderoot.getChildren(); resolvers = new ArrayList(); for (int i = 0; i |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.