Package ffx.utilities
Class FFXTest
java.lang.Object
ffx.utilities.FFXTest
- Direct Known Subclasses:
AlgorithmsTest
,PotentialTest
The FFXTest configures the context for FFX tests. This includes: 1) Sets testing related
environment variables:
Set "-Dffx.ci=true" for a CI environment (default: false).
Set "-Dffx.openMM=true" for CUDA dependent OpenMM tests (default: false).
2) Configures the logging level, using the ffx.test.log System property (default: INFO).
3) Stores System properties prior to each test, and restores them after each test (i.e. properties set by a test do not affect the next test).
4) Upon request, creates a temporary that is deleted after the current test is completed.
5) Requests garbage collection after each test.
Set "-Dffx.ci=true" for a CI environment (default: false).
Set "-Dffx.openMM=true" for CUDA dependent OpenMM tests (default: false).
2) Configures the logging level, using the ffx.test.log System property (default: INFO).
3) Stores System properties prior to each test, and restores them after each test (i.e. properties set by a test do not affect the next test).
4) Upon request, creates a temporary that is deleted after the current test is completed.
5) Requests garbage collection after each test.
- Author:
- Michael J. Schnieders
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
ConstantffxCI=System.getProperty("ffx.ci", "false").equalsIgnoreCase("true")
static final boolean
ConstantffxOpenMM=System.getProperty("ffx.openMM", "false").equalsIgnoreCase("true")
protected static final Logger
Constantlogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
afterClass.void
afterTest.static void
beforeClass.void
beforeTest.Create temporary testing directory that will be deleted after the current test.
-
Field Details
-
ffxCI
public static final boolean ffxCIConstantffxCI=System.getProperty("ffx.ci", "false").equalsIgnoreCase("true")
-
ffxOpenMM
public static final boolean ffxOpenMMConstantffxOpenMM=System.getProperty("ffx.openMM", "false").equalsIgnoreCase("true")
-
logger
Constantlogger
-
-
Constructor Details
-
FFXTest
public FFXTest()FFXTest constructor.
-
-
Method Details
-
afterClass
public static void afterClass()afterClass. -
beforeClass
public static void beforeClass()beforeClass. -
registerTemporaryDirectory
Create temporary testing directory that will be deleted after the current test.- Returns:
- Path to the testing directory.
-
afterTest
public void afterTest()afterTest. -
beforeTest
public void beforeTest()beforeTest.
-