Package ubic.gemma.core.util.test
Class Assumptions
java.lang.Object
ubic.gemma.core.util.test.Assumptions
Reusable assumptions for tests.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassumeThatExecutableExists(String executable) Check if an executable exists and is executable.static voidassumeThatFreeMemoryIsGreaterOrEqualTo(long bytes, boolean jvm) Assume that a certain amount of memory is available.
-
Constructor Details
-
Assumptions
public Assumptions()
-
-
Method Details
-
assumeThatExecutableExists
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
-