|
||||||||||
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.QueryAssertions
public final class QueryAssertions
Common assertions for TimedQuery
with meaningful error messages.
Nested Class Summary | |
---|---|
static class |
QueryAssertions.QueryAssertion<V>
|
static interface |
QueryAssertions.QueryAssertionBuilder<V>
Used to build the target query assertion that is performed in one of the timeout modes: now() - immediately
byDefaultTimeout() - by the tested query's default timeout
by(long) - by client-supplied timeout
|
Method Summary | ||
---|---|---|
static
|
isEqual(T expected)
Query assertion builder for the 'is equal' assertion - to verify that a return value from any given timed query is equal to an expected value. |
|
static
|
isNotNull()
Query assertion builder for 'is not null ' assertion, verifying that return values from timed
queries are non-null . |
|
static
|
isNotNull(Class<T> targetType)
Query assertion builder for 'is not null ' assertion, verifying that return values from timed
queries are non-null . |
|
static
|
isNull()
Query assertion builder for 'is null ' assertion, verifying that return values from timed
queries are null . |
|
static
|
isNull(Class<T> targetType)
Query assertion builder for 'is null ' assertion, verifying that return values from timed
queries are null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> QueryAssertions.QueryAssertionBuilder<T> isEqual(T expected)
T
- type of the return valueexpected
- expected result value of the query
public static <T> QueryAssertions.QueryAssertionBuilder<T> isNotNull(Class<T> targetType)
Query assertion builder for 'is not null
' assertion, verifying that return values from timed
queries are non-null
.
This method will must be used in places, where the compiler is not able to infer the type of the timed query returned value
T
- type parameter of the query return valuetargetType
- class of the query return value
null
' assertionsisNotNull()
public static <T> QueryAssertions.QueryAssertionBuilder<T> isNotNull()
Query assertion builder for 'is not null
' assertion, verifying that return values from timed
queries are non-null
.
T
- type parameter of the query return value
null
' assertionsisNotNull(Class)
public static <T> QueryAssertions.QueryAssertionBuilder<T> isNull(Class<T> targetType)
Query assertion builder for 'is null
' assertion, verifying that return values from timed
queries are null
.
This method will must be used in places, where the compiler is not able to infer the type of the timed query returned value
T
- type parameter of the query return valuetargetType
- class of the query return value
null
' assertionsisNotNull()
public static <T> QueryAssertions.QueryAssertionBuilder<T> isNull()
Query assertion builder for 'is null
' assertion, verifying that return values from timed
queries are null
.
T
- type parameter of the query return value
null
' assertionsisNotNull(Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |