Package com.attivio.sdk.test
Class QueryAssert
- java.lang.Object
-
- com.attivio.sdk.test.QueryAssert
-
public class QueryAssert extends java.lang.Object
Assertions for inspecting/testing tokens.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryAssert
assertThat(Query actual)
Create aQueryAssert
for asserting attributes ofactual
.QueryAssert
equals(Query expected)
QueryAssert
ignore(TokenAnnotation annotation)
Removeannotation
from actual query, as well as from expected query before doing comparisons.QueryAssert
ignoreOffsets()
Remove offsets from actual query, as well as from expected query before doing comparisons.QueryAssert
ignoreTokenized()
IgnoreTokenAnnotation.TOKENIZED
flag on actual and expected query when doing coparisions.QueryAssert
isTokenized(Query expected)
Assert that all terms inactual
are tokenized, and matchesexpected
.QueryAssert
isTokenized(java.lang.String expected)
Assert that all terms inactual
are tokenized, and matchesexpected
.
-
-
-
Method Detail
-
ignoreOffsets
public QueryAssert ignoreOffsets()
Remove offsets from actual query, as well as from expected query before doing comparisons.
-
ignore
public QueryAssert ignore(TokenAnnotation annotation)
Removeannotation
from actual query, as well as from expected query before doing comparisons.
-
ignoreTokenized
public QueryAssert ignoreTokenized()
IgnoreTokenAnnotation.TOKENIZED
flag on actual and expected query when doing coparisions.
-
assertThat
public static QueryAssert assertThat(Query actual)
Create aQueryAssert
for asserting attributes ofactual
.
-
isTokenized
public QueryAssert isTokenized(java.lang.String expected)
Assert that all terms inactual
are tokenized, and matchesexpected
.
-
isTokenized
public QueryAssert isTokenized(Query expected)
Assert that all terms inactual
are tokenized, and matchesexpected
.
-
equals
public QueryAssert equals(Query expected)
-
-