public static void setDefaultTimeout ( Duration defaultTimeout ) { if ( defaultTimeout == null ) { throw new IllegalArgumentException ( "You must specify a default timeout (was null)." ) ; } defaultWaitConstraint = defaultWaitConstraint . withMaxWaitTime ( defaultTimeout ) ; }
Sets the default timeout that all await statements will use .