Add `@build jdk.test.lib.Asserts` to ensure the `Asserts` class from the library (`/lib`) is compiled for all the tests in `test/jdk/java/awt/Modal/FileDialog/`. The tests use `Asserts` indirectly, via the helper classes in the `helpers` folder: `TestDialog`, `TestFrame`, `TestWindow`. (`ExtendedRobot` is explicitly referenced, but `Asserts` isn't.)
Adding this `@build` tag ensures the class is compiled/updated for each test, otherwise, there could be intermittent failures due to missing classes. Additionally, I expanded imports in the helper classes for this test suite. ------------- Commit messages: - 8381745: Ensure Modal/FileDialog tests explicitly refence Asserts class Changes: https://git.openjdk.org/jdk/pull/30610/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30610&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8381745 Stats: 135 lines in 39 files changed: 79 ins; 0 del; 56 mod Patch: https://git.openjdk.org/jdk/pull/30610.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30610/head:pull/30610 PR: https://git.openjdk.org/jdk/pull/30610
