Integrated: 8316025: Use testUI() method of PassFailJFrame.Builder in FileChooserSymLinkTest.java

Alexey Ivanov aivanov at openjdk.org
Wed Nov 1 15:30:16 UTC 2023


On Mon, 11 Sep 2023 16:54:10 GMT, Alexey Ivanov <aivanov at 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 <aivanov at 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


More information about the client-libs-dev mailing list