public class TestDir
extends java.lang.Object
-D Property Names | ||
---|---|---|
Static Variable | Property Name(s) | Description |
testdataDirPropName | unidata.testdata.path | Property name for the path to the Unidata test data directory, e.g unidata.testdata.path=/share/testdata |
Computed Paths | |||
---|---|---|---|
Static Variable | Property Name(s) (-d) | Default Value | Description |
cdmUnitTestDir | NA | NA | New test data directory. Do not put temporary files in here. Migrate all test data here eventually. |
cdmLocalTestDataDir | NA | ../cdm/src/test/data | Level 1 test data directory (distributed with code and MAY be used in Unidata nightly testing). |
Modifier and Type | Class and Description |
---|---|
static interface |
TestDir.Act |
static class |
TestDir.FileFilterFromSuffixes |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cdmLocalFromTestDataDir
The cdm-core local test directory, from cdm-test submodule.
|
static java.lang.String |
cdmLocalTestDataDir
The cdm-core local test directory, from any cdm submodule.
|
static java.lang.String |
cdmTestDataDir
cdm-test data directory (distributed with code but depends on data not in github)
|
static java.lang.String |
cdmUnitTestDir
New test data directory.
|
static java.lang.String |
localTestDataDir
The module local test directory.
|
static java.lang.String |
testdataDir
Path to the Unidata test data directory.
|
Constructor and Description |
---|
TestDir() |
Modifier and Type | Method and Description |
---|---|
static int |
actOnAll(java.lang.String dirName,
java.io.FileFilter ff,
TestDir.Act act)
Call act.doAct() on each file in dirName that passes the file filter, recurse into subdirs.
|
static int |
actOnAll(java.lang.String dirName,
java.io.FileFilter ff,
TestDir.Act act,
boolean recurse)
Call act.doAct() on each file in dirName passing the file filter
|
static int |
actOnAllParameterized(java.lang.String dirName,
java.io.FileFilter ff,
java.util.Collection<java.lang.Object[]> filenames)
Make list of filenames that pass the file filter, recurse true.
|
static int |
actOnAllParameterized(java.lang.String dirName,
java.io.FileFilter ff,
java.util.Collection<java.lang.Object[]> filenames,
boolean recurse)
Make list of filenames that pass the file filter, recurse set by user.
|
static long |
checkLeaks() |
static java.io.FileFilter |
FileFilterSkipSuffix(java.lang.String suffixes) |
static NetcdfFile |
open(java.lang.String filename) |
static NetcdfFile |
openFileLocal(java.lang.String filename) |
static void |
readAll(java.lang.String filename) |
static int |
readAllData(NetcdfFile ncfile) |
public static java.lang.String testdataDir
public static java.lang.String cdmUnitTestDir
public static java.lang.String cdmLocalTestDataDir
public static java.lang.String localTestDataDir
public static java.lang.String cdmLocalFromTestDataDir
public static java.lang.String cdmTestDataDir
public static NetcdfFile open(java.lang.String filename) throws java.io.IOException
java.io.IOException
public static NetcdfFile openFileLocal(java.lang.String filename) throws java.io.IOException
java.io.IOException
public static long checkLeaks()
public static java.io.FileFilter FileFilterSkipSuffix(java.lang.String suffixes)
public static int actOnAll(java.lang.String dirName, java.io.FileFilter ff, TestDir.Act act) throws java.io.IOException
java.io.IOException
public static int actOnAll(java.lang.String dirName, java.io.FileFilter ff, TestDir.Act act, boolean recurse) throws java.io.IOException
dirName
- recurse into this directoryff
- for files that pass this filter, may be nullact
- perform this acctionrecurse
- recurse into subdirectoriesjava.io.IOException
- on IO errorpublic static int actOnAllParameterized(java.lang.String dirName, java.io.FileFilter ff, java.util.Collection<java.lang.Object[]> filenames) throws java.io.IOException
java.io.IOException
public static int actOnAllParameterized(java.lang.String dirName, java.io.FileFilter ff, java.util.Collection<java.lang.Object[]> filenames, boolean recurse) throws java.io.IOException
java.io.IOException
public static void readAll(java.lang.String filename) throws java.io.IOException
java.io.IOException
public static int readAllData(NetcdfFile ncfile) throws java.io.IOException
java.io.IOException