RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

Alexey Ivanov aivanov at openjdk.org
Fri Feb 9 16:08:07 UTC 2024


On Fri, 9 Feb 2024 14:59:06 GMT, Renjith Kannath Pariyangad <rkannathpari at openjdk.org> wrote:

> Hi Reviewers,
> I have updated the test with 'PassFailJFrame' with programmatically generating image and print , please review and let me know your suggestions.

test/jdk/java/awt/PrintJob/ImageTest/ImageTest.java line 151:

> 149:         if (PrinterJob.lookupPrintServices().length == 0) {
> 150:             throw new SkippedException("Printer not configured or available."
> 151:                     + " Test cannot continue.");

Suggestion:

            throw new SkippedException("Printer not configured or available.");

We decided to shorten the message. Let's keep it consistent.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17790#discussion_r1484521510


More information about the client-libs-dev mailing list