public class TestDir extends 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 |
| remoteTestServerPropName | remotetest | Property name for the hostname of the C-library remote test server. |
| 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). |
| remoteTestServer | remotetestserver | remotetest.unidata.ucar.edu | The hostname of the test server for doing C library remote tests. |
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestDir.Act |
static class |
TestDir.FileFilterFromSuffixes |
| Modifier and Type | Field and Description |
|---|---|
static String |
cdmLocalFromTestDataDir
The cdm-core local test directory, from cdm-test submodule.
|
static String |
cdmLocalTestDataDir
The cdm-core local test directory, from any cdm submodule.
|
static String |
cdmTestDataDir
cdm-test data directory (distributed with code but depends on data not in github)
|
static String |
cdmUnitTestDir
New test data directory.
|
static String |
dap2TestServer |
static String |
dap2TestServerPropName |
static String |
dap4TestServer |
static String |
dap4TestServerPropName |
static String |
localTestDataDir
The module local test directory.
|
static String |
remoteTestServer |
static String |
testdataDir
Path to the Unidata test data directory.
|
| Constructor and Description |
|---|
TestDir() |
| Modifier and Type | Method and Description |
|---|---|
static int |
actOnAll(String dirName,
FileFilter ff,
TestDir.Act act)
Call act.doAct() on each file in dirName that passes the file filter, recurse into subdirs.
|
static int |
actOnAll(String dirName,
FileFilter ff,
TestDir.Act act,
boolean recurse)
Call act.doAct() on each file in dirName passing the file filter
|
static int |
actOnAllParameterized(String dirName,
FileFilter ff,
Collection<Object[]> filenames)
Make list of filenames that pass the file filter, recurse true.
|
static int |
actOnAllParameterized(String dirName,
FileFilter ff,
Collection<Object[]> filenames,
boolean recurse)
Make list of filenames that pass the file filter, recurse set by user.
|
static long |
checkLeaks() |
static FileFilter |
FileFilterSkipSuffix(String suffixes) |
static ucar.nc2.NetcdfFile |
open(String filename) |
static ucar.nc2.NetcdfFile |
openFileLocal(String filename) |
static void |
readAll(String filename) |
static int |
readAllData(ucar.nc2.NetcdfFile ncfile) |
public static String testdataDir
public static String cdmUnitTestDir
public static String cdmLocalTestDataDir
public static String localTestDataDir
public static String cdmLocalFromTestDataDir
public static String cdmTestDataDir
public static String remoteTestServer
public static String dap2TestServerPropName
public static String dap2TestServer
public static String dap4TestServerPropName
public static String dap4TestServer
public static ucar.nc2.NetcdfFile open(String filename) throws IOException
IOExceptionpublic static ucar.nc2.NetcdfFile openFileLocal(String filename) throws IOException
IOExceptionpublic static long checkLeaks()
public static FileFilter FileFilterSkipSuffix(String suffixes)
public static int actOnAll(String dirName, FileFilter ff, TestDir.Act act) throws IOException
IOExceptionpublic static int actOnAll(String dirName, FileFilter ff, TestDir.Act act, boolean recurse) throws IOException
dirName - recurse into this directoryff - for files that pass this filter, may be nullact - perform this acctionrecurse - recurse into subdirectoriesIOException - on IO errorpublic static int actOnAllParameterized(String dirName, FileFilter ff, Collection<Object[]> filenames) throws IOException
IOExceptionpublic static int actOnAllParameterized(String dirName, FileFilter ff, Collection<Object[]> filenames, boolean recurse) throws IOException
IOExceptionpublic static void readAll(String filename) throws IOException
IOExceptionpublic static int readAllData(ucar.nc2.NetcdfFile ncfile)
throws IOException
IOException