Package ome.services.blitz.util
Class CurrentPlatform
- java.lang.Object
-
- ome.services.blitz.util.CurrentPlatform
-
public class CurrentPlatform extends java.lang.Object
Test under which platform OMERO is currently running. Exactly one of the public methods returnstrue
. Each executes quickly. Useful with @Assumption annotations to limit unit tests to specific test platforms.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description CurrentPlatform()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isLinux()
static boolean
isMacOSX()
static boolean
isUnknown()
static boolean
isWindows()
-
-
-
Method Detail
-
isWindows
public static boolean isWindows()
- Returns:
- if this platform is Microsoft Windows
-
isLinux
public static boolean isLinux()
- Returns:
- if this platform is Linux
-
isMacOSX
public static boolean isMacOSX()
- Returns:
- if this platform is Mac OS X
-
isUnknown
public static boolean isUnknown()
- Returns:
- if this platform is unidentified
-
-