Class QueryAssert


  • public class QueryAssert
    extends java.lang.Object
    Assertions for inspecting/testing tokens.
    • 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)
        Remove annotation from actual query, as well as from expected query before doing comparisons.
      • ignoreTokenized

        public QueryAssert ignoreTokenized()
        Ignore TokenAnnotation.TOKENIZED flag on actual and expected query when doing coparisions.
      • isTokenized

        public QueryAssert isTokenized​(java.lang.String expected)
        Assert that all terms in actual are tokenized, and matches expected.
      • isTokenized

        public QueryAssert isTokenized​(Query expected)
        Assert that all terms in actual are tokenized, and matches expected.