Package com.attivio.sdk.test
Class QueryAssert
- java.lang.Object
-
- com.attivio.sdk.test.QueryAssert
-
public class QueryAssert extends java.lang.ObjectAssertions for inspecting/testing tokens.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryAssertassertThat(Query actual)Create aQueryAssertfor asserting attributes ofactual.QueryAssertequals(Query expected)QueryAssertignore(TokenAnnotation annotation)Removeannotationfrom actual query, as well as from expected query before doing comparisons.QueryAssertignoreOffsets()Remove offsets from actual query, as well as from expected query before doing comparisons.QueryAssertignoreTokenized()IgnoreTokenAnnotation.TOKENIZEDflag on actual and expected query when doing coparisions.QueryAssertisTokenized(Query expected)Assert that all terms inactualare tokenized, and matchesexpected.QueryAssertisTokenized(java.lang.String expected)Assert that all terms inactualare 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)
Removeannotationfrom actual query, as well as from expected query before doing comparisons.
-
ignoreTokenized
public QueryAssert ignoreTokenized()
IgnoreTokenAnnotation.TOKENIZEDflag on actual and expected query when doing coparisions.
-
assertThat
public static QueryAssert assertThat(Query actual)
Create aQueryAssertfor asserting attributes ofactual.
-
isTokenized
public QueryAssert isTokenized(java.lang.String expected)
Assert that all terms inactualare tokenized, and matchesexpected.
-
isTokenized
public QueryAssert isTokenized(Query expected)
Assert that all terms inactualare tokenized, and matchesexpected.
-
equals
public QueryAssert equals(Query expected)
-
-