Package ffx.utilities

Class FFXTest

java.lang.Object
ffx.utilities.FFXTest
Direct Known Subclasses:
AlgorithmsTest, PotentialTest

public abstract class FFXTest extends Object
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.
Author:
Michael J. Schnieders
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Constant ffxCI=System.getProperty("ffx.ci", "false").equalsIgnoreCase("true")
    static final boolean
    Constant ffxOpenMM=System.getProperty("ffx.openMM", "false").equalsIgnoreCase("true")
    protected static final Logger
    Constant logger
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    FFXTest constructor.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    static void
    afterClass.
    void
    afterTest.
    static void
    beforeClass.
    void
    beforeTest.
    Create temporary testing directory that will be deleted after the current test.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • ffxCI Link icon

      public static final boolean ffxCI
      Constant ffxCI=System.getProperty("ffx.ci", "false").equalsIgnoreCase("true")
    • ffxOpenMM Link icon

      public static final boolean ffxOpenMM
      Constant ffxOpenMM=System.getProperty("ffx.openMM", "false").equalsIgnoreCase("true")
    • logger Link icon

      protected static final Logger logger
      Constant logger
  • Constructor Details Link icon

    • FFXTest Link icon

      public FFXTest()
      FFXTest constructor.
  • Method Details Link icon

    • afterClass Link icon

      public static void afterClass()
      afterClass.
    • beforeClass Link icon

      public static void beforeClass()
      beforeClass.
    • registerTemporaryDirectory Link icon

      public Path registerTemporaryDirectory()
      Create temporary testing directory that will be deleted after the current test.
      Returns:
      Path to the testing directory.
    • afterTest Link icon

      public void afterTest()
      afterTest.
    • beforeTest Link icon

      public void beforeTest()
      beforeTest.