Skip to content

Migrate ShardQueryLogicQueryValidationTest from Arquillian to JUnit5/Spring#3673

Merged
apmoriarty merged 1 commit into
integrationfrom
task/migrate-shard-query-logic-validation-test
Jul 13, 2026
Merged

Migrate ShardQueryLogicQueryValidationTest from Arquillian to JUnit5/Spring#3673
apmoriarty merged 1 commit into
integrationfrom
task/migrate-shard-query-logic-validation-test

Conversation

@apmoriarty

Copy link
Copy Markdown
Collaborator

Drops the Arquillian container deployment in favor of SpringExtension with the same context config used by the AbstractQueryTest-based tests. This test calls ShardQueryLogic.validateQuery() directly and asserts on QueryRuleResult/exception state, never planning or executing a query, so it doesn't fit AbstractQueryTest's plan/execute/assert-results model at all; it's modernized to plain JUnit5 instead, same as the other non-ShardQueryLogic-flow test files. Also swaps the QueryTestTableHelper instance-name label from the still-unmigrated ShardQueryLogicTest.ShardRange (borrowed only for a unique string, no functional dependency) to this class's own name, since that reference would otherwise break once ShardQueryLogicTest.ShardRange is removed by a later migration.

…Spring

Drops the Arquillian container deployment in favor of SpringExtension
with the same context config used by the AbstractQueryTest-based tests.
This test calls ShardQueryLogic.validateQuery() directly and asserts on
QueryRuleResult/exception state, never planning or executing a query, so
it doesn't fit AbstractQueryTest's plan/execute/assert-results model at
all; it's modernized to plain JUnit5 instead, same as the other
non-ShardQueryLogic-flow test files. Also swaps the QueryTestTableHelper
instance-name label from the still-unmigrated ShardQueryLogicTest.ShardRange
(borrowed only for a unique string, no functional dependency) to this
class's own name, since that reference would otherwise break once
ShardQueryLogicTest.ShardRange is removed by a later migration.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@hoper-38709 hoper-38709 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@apmoriarty apmoriarty added this pull request to the merge queue Jul 13, 2026
Merged via the queue into integration with commit f3ffa4e Jul 13, 2026
16 checks passed
@apmoriarty apmoriarty deleted the task/migrate-shard-query-logic-validation-test branch July 14, 2026 13:29
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.

3 participants