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 MultiFileSystem1Test extends FileSystemFactoryHid { 35 36 37 public MultiFileSystem1Test(Test test) { 38 super(test); 39 } 40 41 public static void main(String args[]) throws Exception { 42 junit.textui.TestRunner.run(suite()); 43 } 44 45 public static Test suite() { 46 NbTestSuite suite = new NbTestSuite(); 47 suite.addTestSuite(RepositoryTestHid.class); 48 suite.addTestSuite(FileSystemTestHid.class); 49 suite.addTestSuite(AttributesTestHidden.class); 50 suite.addTestSuite(FileObjectTestHid.class); 51 suite.addTestSuite(MultiFileObjectTestHid.class); 52 53 suite.addTestSuite(URLMapperTestHidden.class); 54 suite.addTestSuite(URLMapperTestInternalHidden.class); 55 suite.addTestSuite(FileUtilTestHidden.class); 56 57 return new MultiFileSystem1Test (suite); 58 } 59 60 61 65 protected FileSystem[] createFileSystem (String testName, String [] resources) throws IOException { 66 FileSystem lfs = TestUtilHid.createLocalFileSystem("mfs1"+testName, resources); 67 FileSystem xfs = TestUtilHid.createXMLFileSystem(testName, new String [] {}); 68 FileSystem mfs = new MultiFileSystem (new FileSystem[] {lfs,xfs}); 69 try { 70 mfs.setSystemName("mfs1test"); 71 } catch (PropertyVetoException e) { 72 e.printStackTrace(); } 74 return new FileSystem[] {mfs,lfs,xfs}; 75 } 76 77 protected void destroyFileSystem (String testName) throws IOException {} 78 } 79 | Popular Tags |