| |
|
| org.openide.filesystems.ReadOnlyFSTest
All known Subclasses: org.openide.filesystems.FSTest, org.openide.filesystems.xmlfs.XMLFSTest,
ReadOnlyFSTest | abstract public class ReadOnlyFSTest extends MapArgBenchmark (Code) | | ReadOnlyFSTest is a base class for FileSystem tests. It defines a lot of methods that
exploit interface of the FileSystem class, note, however, that it uses only operations
that do not change state of the FileSystem.
|
files | protected FileObject[] files(Code) | | FileObjects for given run
|
foCount | protected int foCount(Code) | | number of files for given run
|
iterations | protected int iterations(Code) | | iterations for given run
|
pairs | protected String[][] pairs(Code) | | String attrs for given run
|
perm | protected int[] perm(Code) | | Gives permutation
|
ReadOnlyFSTest | public ReadOnlyFSTest(String name)(Code) | | Creates new Tests
|
cleanUpAttributes | public void cleanUpAttributes(FileObject[] files) throws Exception(Code) | | Remove all attributes for given files
|
createArguments | protected Map[] createArguments()(Code) | | Creates arguments for this instance of Benchmark (not for given configuration)
|
createDefaultMap | protected Map createDefaultMap()(Code) | | Creates a Map with default arguments values
|
createTempFolder | public static File createTempFolder() throws IOException(Code) | | Creates temporary folder with a random name
|
delete | public static void delete(File folder) throws Exception(Code) | | Deletes (recursively) a folder
|
fillIntArray | final public static int[] fillIntArray(int[] arr)(Code) | | Fills in an array of ints so that arr[i] == i
|
generateRandomStrings | final public static String[][] generateRandomStrings(String[][] arr)(Code) | | Generates random String pairs
|
setUpFileObjects | abstract protected FileObject[] setUpFileObjects(int foCount) throws Exception(Code) | | Set up given number of FileObjects
|
shuffleIntArray | final public static int[] shuffleIntArray(int[] arr)(Code) | | Shuffles an int array so that arr[i] == i is not very likely
|
tearDown | protected void tearDown() throws Exception(Code) | | Shuts down this test
|
tearDownFileObjects | abstract protected void tearDownFileObjects(FileObject[] fos) throws Exception(Code) | | Disposes given FileObjects
|
testGetAttributesRnd | public void testGetAttributesRnd() throws IOException(Code) | | Gets all attributes for all FileObjects (their no. given by the
parameter). Attributes are acquired randomly.
|
testGetAttributesSeq | public void testGetAttributesSeq() throws IOException(Code) | | Gets all attributes for all FileObjects (their no. given by the
parameter). Attributes are acquired sequentially.
|
|
|
|