org.uispec4j
Class UISpec4J

java.lang.Object
  extended by org.uispec4j.UISpec4J

public class UISpec4J
extends java.lang.Object

Facade for the initialization of the library, mainly used for the interception mechanism.

See Also:
Intercepting windows

Field Summary
static int DEFAULT_ASSERTION_TIME_LIMIT
           
 
Constructor Summary
UISpec4J()
           
 
Method Summary
static long getAssertionTimeLimit()
          Returns the default timeout value (in milliseconds) used when checking assertions.
static long getWindowInterceptionTimeLimit()
          Returns the default timeout value (in milliseconds) used by the library for interception mechanism.
static void init()
          Initializes UISpec4J, for instance by setting up the interception mechanism.
static void setAssertionTimeLimit(long assertionTimeLimit)
          Sets the default timeout value (in milliseconds) used when checking assertions.
static void setWindowInterceptionTimeLimit(long millis)
          Sets the default timeout value (in milliseconds) used by the library for interception mechanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ASSERTION_TIME_LIMIT

public static final int DEFAULT_ASSERTION_TIME_LIMIT
See Also:
Constant Field Values
Constructor Detail

UISpec4J

public UISpec4J()
Method Detail

init

public static void init()
Initializes UISpec4J, for instance by setting up the interception mechanism.


setWindowInterceptionTimeLimit

public static void setWindowInterceptionTimeLimit(long millis)
Sets the default timeout value (in milliseconds) used by the library for interception mechanism. Default value is 10.000, i.e. 10s.


getWindowInterceptionTimeLimit

public static long getWindowInterceptionTimeLimit()
Returns the default timeout value (in milliseconds) used by the library for interception mechanism. Default value is 10.000, i.e. 10s.


getAssertionTimeLimit

public static long getAssertionTimeLimit()
Returns the default timeout value (in milliseconds) used when checking assertions. Default value is 500, i.e. 0.5s.


setAssertionTimeLimit

public static void setAssertionTimeLimit(long assertionTimeLimit)
Sets the default timeout value (in milliseconds) used when checking assertions. Default value is 500, i.e. 0.5s.



Copyright © 2004-2010. All Rights Reserved.