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 29 34 public class MultiFileSystem3Test extends FileSystemFactoryHid { 35 36 public MultiFileSystem3Test(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(FileSystemTestHid.class); 48 suite.addTestSuite(AttributesTestHidden.class); 49 suite.addTestSuite(FileObjectTestHid.class); 50 suite.addTestSuite(MultiFileObjectTestHid.class); 51 52 suite.addTestSuite(URLMapperTestHidden.class); 53 suite.addTestSuite(URLMapperTestInternalHidden.class); 54 suite.addTestSuite(FileUtilTestHidden.class); 55 56 return new MultiFileSystem3Test (suite); 57 } 58 59 60 64 protected FileSystem[] createFileSystem (String testName, String [] resources) throws IOException { 65 FileSystem lfs = TestUtilHid.createLocalFileSystem("mfs3"+testName, resources); 66 FileSystem xfs = TestUtilHid.createXMLFileSystem(testName, resources); 67 FileSystem mfs = new MultiFileSystem (new FileSystem[] {lfs,xfs}); 68 try { 69 mfs.setSystemName("mfs3test"); 70 } catch (PropertyVetoException e) { 71 e.printStackTrace(); } 73 return new FileSystem[] {mfs,lfs,xfs}; 74 } 75 76 protected void destroyFileSystem (String testName) throws IOException {} 77 } 78 | Popular Tags |