1 19 20 package org.openide.filesystems; 21 22 import junit.framework.*; 23 import java.io.IOException ; 24 import java.util.*; 25 import org.netbeans.junit.*; 26 27 import org.openide.filesystems.*; 28 29 34 public class MemoryFileSystemTest extends FileSystemFactoryHid { 35 36 public MemoryFileSystemTest(Test test) { 37 super(test); 38 } 39 40 public static void main(String args[]) { 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(FileObjectTestHid.class); 49 suite.addTestSuite(MemoryFSTestHid.class); 50 51 return new MemoryFileSystemTest(suite); 52 } 53 54 55 protected void destroyFileSystem(String testName) throws IOException { 56 } 57 58 protected FileSystem[] createFileSystem(String testName, String [] resources) throws IOException { 59 return new FileSystem[] {new MemoryFileSystem(resources)}; 60 } 61 } 62 | Popular Tags |