Class Assumptions

java.lang.Object
ubic.gemma.core.util.test.Assumptions

public class Assumptions extends Object
Reusable assumptions for tests.
Author:
poirigui
  • Constructor Details

    • Assumptions

      public Assumptions()
  • Method Details

    • assumeThatExecutableExists

      public static void assumeThatExecutableExists(String executable)
      Check if an executable exists and is executable.

      If the executable is a path, it will be checked directly, otherwise it will be searched in the $PATH.

    • assumeThatFreeMemoryIsGreaterOrEqualTo

      public static void assumeThatFreeMemoryIsGreaterOrEqualTo(long bytes, boolean jvm)
      Assume that a certain amount of memory is available.
      Parameters:
      jvm - whether to consider the free JVM memory or the system free memory