Class CurrentPlatform


  • public class CurrentPlatform
    extends java.lang.Object
    Test under which platform OMERO is currently running. Exactly one of the public methods returns true. 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CurrentPlatform

        public CurrentPlatform()
    • 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