On Mon, 11 Sep 2023 16:54:10 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
> This update to `FileChooserSymLinkTest.java` demonstrates the usage of the > `testUI` method of the `PassFailJFrame.Builder` class to streamline creating > the UI for manual tests. > > The [`main` > method](https://github.com/aivanov-jdk/jdk/blob/cb1835527d718226f1c6fdd85ff5986703ea356f/test/jdk/javax/swing/JFileChooser/FileChooserSymLinkTest.java#L110-L118) > is a simple sequence of calls: > > > public static void main(String[] args) throws Exception { > PassFailJFrame.builder() > .instructions(INSTRUCTIONS) > .rows(35) > .columns(50) > .testUI(FileChooserSymLinkTest::createTestUI) > .build() > .awaitAndCheck(); > } > > > It's the most streamlined way of creating a manual test. > > This change depends on #15665 and > [JDK-8294156](https://bugs.openjdk.org/browse/JDK-8294156) as well as #15661, > both of which depend on #15660. This pull request has now been integrated. Changeset: 7f47c51a Author: Alexey Ivanov <aiva...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/7f47c51aced9c724dbc9b0d8cbd88c49435da460 Stats: 123 lines in 1 file changed: 53 ins; 60 del; 10 mod 8316025: Use testUI() method of PassFailJFrame.Builder in FileChooserSymLinkTest.java Reviewed-by: azvegint ------------- PR: https://git.openjdk.org/jdk/pull/15666