1 19 20 package org.openide.filesystems; 21 22 import junit.framework.*; 23 import org.netbeans.junit.*; 24 26 import java.io.*; 27 import java.beans.PropertyVetoException ; 28 33 public class MultiFileSystem2Test extends FileSystemFactoryHid { 34 35 36 public MultiFileSystem2Test(Test test) { 37 super(test); 38 } 39 40 public static void main(String args[]) throws Exception { 41 junit.textui.TestRunner.run(suite()); 42 } 43 44 public static Test suite() { 45 NbTestSuite suite = new NbTestSuite(); 46 suite.addTestSuite(RepositoryTestHid.class); 47 suite.addTestSuite(AttributesTestHidden.class); 48 suite.addTestSuite(FileSystemTestHid.class); 49 suite.addTestSuite(FileObjectTestHid.class); 50 suite.addTestSuite(MultiFileObjectTestHid.class); 51 52 suite.addTestSuite(URLMapperTestHidden.class); 53 suite.addTestSuite(URLMapperTestInternalHidden.class); 54 55 return new MultiFileSystem2Test (suite); 56 } 57 58 59 63 protected FileSystem[] createFileSystem (String testName, String [] resources) throws IOException { 64 FileSystem lfs = TestUtilHid.createLocalFileSystem("mfs2"+testName, new String [] {}); 65 FileSystem xfs = TestUtilHid.createXMLFileSystem(testName, resources); 66 FileSystem mfs = new MultiFileSystem (new FileSystem[] {lfs,xfs}); 67 try { 68 mfs.setSystemName("mfs2test"); 69 } catch (PropertyVetoException e) { 70 e.printStackTrace(); } 72 return new FileSystem[] {mfs,lfs,xfs}; 73 } 74 75 protected void destroyFileSystem (String testName) throws IOException {} 76 } 77 | Popular Tags |