Skip to content

Migrate HitsAreAlwaysIncludedCommonalityTokenTest from Arquillian to AbstractQueryTest#3679

Open
apmoriarty wants to merge 1 commit into
integrationfrom
task/migrate-hits-always-included-commonality-token-test
Open

Migrate HitsAreAlwaysIncludedCommonalityTokenTest from Arquillian to AbstractQueryTest#3679
apmoriarty wants to merge 1 commit into
integrationfrom
task/migrate-hits-always-included-commonality-token-test

Conversation

@apmoriarty

Copy link
Copy Markdown
Collaborator

No description provided.

…AbstractQueryTest

Uses ShardQueryLogic (EventQuery bean), extends AbstractQueryTest
directly. The original runTestQuery() used a single mutable goodResults
set for two purposes: non-destructively checking hit-term content
membership, and destructively consuming it via remove() while walking
each returned document's field dictionary, asserting it empty after
each document. That logic is preserved verbatim in extraAssertions(),
matched against a local copy since planAndExecuteQuery() invokes
extraAssertions() once per index table variant. Plan assertion
disabled (original never checked the planned query string).

Per the established pattern for this batch, the ShardRange/
DocumentRange nested-subclass split is dropped: data is ingested once
via CommonalityTokenTestDataIngest with the DOCUMENT range only, since
that ingest helper already calls IndexIngestUtil internally to derive
the other shard index table variants AbstractQueryTest iterates over.

Both tests pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants