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

    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

    Constructors
    Constructor
    Description
    FFXTest constructor.
  • Method Summary

    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

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

    • ffxCI

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

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

      protected static final Logger logger
      Constant logger
  • Constructor Details

    • FFXTest

      public FFXTest()
      FFXTest constructor.
  • Method Details

    • afterClass

      public static void afterClass()
      afterClass.
    • beforeClass

      public static void beforeClass()
      beforeClass.
    • registerTemporaryDirectory

      public Path 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.