Skip to content

Migrate ShardQueryLogicQueryValidationTest from Arquillian to JUnit5/Spring#3673

Open
apmoriarty wants to merge 1 commit into
integrationfrom
task/migrate-shard-query-logic-validation-test
Open

Migrate ShardQueryLogicQueryValidationTest from Arquillian to JUnit5/Spring#3673
apmoriarty wants to merge 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>
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