Integrated: 8325762: Use PassFailJFrame.Builder.splitUI() in PrintLatinCJKTest.java

Alexey Ivanov aivanov at openjdk.org
Wed Feb 28 14:45:01 UTC 2024


On Wed, 14 Feb 2024 13:57:41 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The `test/jdk/java/awt/print/PrinterJob/PrintLatinCJKTest.java` displays a single *Print* button as its test UI. To simplify the UI, I used the new `splitUI` method from #17845.
> 
> In addition to it, I refactored the test:
> 
> - Extracted the rendered text into a constant to ensure the same text is printed and displayed in the instructions.
> - Displayed an error message to the tester if `PrinterException` is caught and automatically failed the test.

This pull request has now been integrated.

Changeset: 41242cbe
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/41242cbe5d01fc6e19859626dd08f6191e7486fb
Stats:     70 lines in 1 file changed: 21 ins; 14 del; 35 mod

8325762: Use PassFailJFrame.Builder.splitUI() in PrintLatinCJKTest.java

Reviewed-by: honkar, dmarkov

-------------

PR: https://git.openjdk.org/jdk/pull/17847


More information about the client-libs-dev mailing list