Class SystemDiagnosis


  • public class SystemDiagnosis
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemDiagnosis()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void validateMouseMovement()
      Runs a diagnosis with default configuration, by setting mouse all over your screen and expecting to receive correct coordinates back.
      static void validateMouseMovement​(SystemCalls system, MouseInfoAccessor accessor)
      Runs a diagnosis, by setting mouse all over your screen and expecting to receive correct coordinates back.
      • Methods inherited from class java.lang.Object

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

      • SystemDiagnosis

        public SystemDiagnosis()
    • Method Detail

      • validateMouseMovement

        public static void validateMouseMovement()
        Runs a diagnosis with default configuration, by setting mouse all over your screen and expecting to receive correct coordinates back. If java.awt.Robot cannot be constructed, then new RuntimeException is thrown. If no issues are found, then this method completes without throwing an error, otherwise IllegalStateException is thrown.
      • validateMouseMovement

        public static void validateMouseMovement​(SystemCalls system,
                                                 MouseInfoAccessor accessor)
        Runs a diagnosis, by setting mouse all over your screen and expecting to receive correct coordinates back. If no issues are found, then this method completes without throwing an error, otherwise IllegalStateException is thrown.
        Parameters:
        system - a SystemCalls class which is used for setting the mouse position
        accessor - a MouseInfoAccessor which is used for querying mouse position