Index: test/unit/src/org/netbeans/modules/masterfs/GetChildrenScalesWithNumberOfFilesTest.java =================================================================== RCS file: test/unit/src/org/netbeans/modules/masterfs/GetChildrenScalesWithNumberOfFilesTest.java diff -N test/unit/src/org/netbeans/modules/masterfs/GetChildrenScalesWithNumberOfFilesTest.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ test/unit/src/org/netbeans/modules/masterfs/GetChildrenScalesWithNumberOfFilesTest.java 23 Jan 2005 19:44:30 -0000 @@ -0,0 +1,102 @@ +/* + * 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-2000 Sun + * Microsystems, Inc. All Rights Reserved. + */ + +package org.netbeans.modules.masterfs; + +import junit.framework.*; + +import java.io.*; +import java.util.*; + + +import org.openide.filesystems.*; +//import org.openide.execution.*; +import org.openide.*; +import org.openide.util.lookup.ProxyLookup; +import org.openide.util.lookup.InstanceContent; +import org.openide.util.lookup.AbstractLookup; +import org.openide.util.lookup.Lookups; +import org.openide.util.Lookup; +import org.netbeans.junit.*; +import org.netbeans.modules.masterfs.providers.FileSystemProvider; +import org.netbeans.modules.masterfs.providers.AutoMountProvider; +import org.netbeans.modules.masterfs.providers.MountSupport; + +/** + * + * @author Jaroslav Tulach + */ +public class GetChildrenScalesWithNumberOfFilesTest extends org.netbeans.junit.NbTestCase { + private static MasterFileSystem masterfs; + + private FileObject fo; + + static { + System.setProperty("org.openide.util.Lookup", org.netbeans.modules.masterfs.MasterFileSystemTest.TestLookup.class.getName()); + } + + public static TestSuite suite () { + return org.netbeans.junit.NbTestSuite.linearSpeedSuite (GetChildrenScalesWithNumberOfFilesTest.class, 3, 5); + } + + /** Creates new MasterFileSystemTest */ + public GetChildrenScalesWithNumberOfFilesTest(String name) { + super(name); + } + + protected void setUp () throws Exception { + File f = getWorkDir (); + + + int cnt = getTestNumber (); + for (int i = 0; i < cnt; i++) { + new File (f, i + ".tmp").createNewFile (); + } + + fo = FileUtil.toFileObject (f); + assertEquals (MasterFileSystem.class, fo.getFileSystem ().getClass ()); + + } + + protected void tearDown () throws Exception { + fo.delete (); + } + + + public void test300 () { + fo.getChildren (); + } + + public void test900 () { + fo.getChildren (); + } + + public void test500 () { + fo.getChildren (); + } + public void test2000 () { + fo.getChildren (); + } + public void test5000 () { + fo.getChildren (); + } + public void test8000 () { + fo.getChildren (); + } + public void test10000 () { + fo.getChildren (); + } + public void test15000 () { + fo.getChildren (); + } +}