|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.core.context.AbstractWebTestContextAware com.atlassian.jira.webtest.framework.gadget.GadgetTimedCondition
public class GadgetTimedCondition
TimedCondition
that decorates another target condition
and changes target frame of its calls to hit the target gadget.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.core.context.AbstractWebTestContextAware |
---|
context |
Constructor Summary | |
---|---|
GadgetTimedCondition(WebTestContext context,
TimedCondition condition,
Gadget gadget)
|
Method Summary | |
---|---|
boolean |
by(long timeout)
Evaluate the condition by given timeout. |
boolean |
byDefaultTimeout()
Evaluate the condition by a timeout deemed default by the condition in the given test context. |
long |
defaultTimeout()
Default timeout of this query in the current test context. |
long |
interval()
An interval (in milliseconds) that will be used to periodically evaluate the query. |
boolean |
now()
Evaluate the condition immediately. |
String |
toString()
|
Methods inherited from class com.atlassian.jira.webtest.framework.core.context.AbstractWebTestContextAware |
---|
context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GadgetTimedCondition(WebTestContext context, TimedCondition condition, Gadget gadget)
Method Detail |
---|
public boolean by(long timeout)
TimedCondition
true
as soon as the
condition is true
, otherwise return false when the given timeout expires.
- Specified by:
by
in interface TimedCondition
- Parameters:
timeout
- timeout in milliseconds (must be greater than 0)
- Returns:
true
, if the underlying condition evaluates to true
before the timeout
expires
public boolean byDefaultTimeout()
TimedCondition
byDefaultTimeout
in interface TimedCondition
true
, if the underlying condition evaluates to true
before the default timeout
expirespublic boolean now()
TimedCondition
now
in interface TimedCondition
public long interval()
PollingQuery
interval
in interface PollingQuery
public long defaultTimeout()
PollingQuery
defaultTimeout
in interface PollingQuery
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |