yiguolei opened a new pull request, #71283: URL: https://github.com/apache/doris/pull/71283
### What problem does this PR solve? Issue Number: None Related PR: #70975, #71250 The schema-change test backported in #70975 calls `Assertions.assertThrows`, `Assertions.assertTrue`, and `Assertions.assertEquals`, but the test class imports JUnit 4's `org.junit.Assert`. FE test compilation fails with `cannot find symbol: variable Assertions` at lines 87, 89, and 93. This failure occurred in [TeamCity build #23414](http://doris-ci.com/builds/agent-test/23414/index.html) for #71250 after merging the branch-4.2 baseline `851110b83e544a4d4582e97919faec7e05a1ad99`. Replace the three references with the already imported `Assert`, consistent with the rest of the class. Test assertions and production behavior are unchanged. ### Validation - `git diff --check` passed. - Checked existing branch-4.2 uses of `Assert.assertThrows` for API consistency. - Builds and tests were not run, following the author's preference. ### Release note Fix FE test compilation on branch-4.2 after #70975. ### Check List (For Author) - Test - [x] Unit Test (fixes compilation of an existing test; not executed) - Behavior changed: - [x] No. - Does this need documentation? - [x] No. ### AI Disclosure - Tool: Codex. - Generated: The three assertion-reference fixes and this description. - Human review: The author authorized PR publication; full code review is not asserted. ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
