RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer
Alexey Ivanov
aivanov at openjdk.org
Mon Feb 12 19:38:59 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.
What would be the best option to handle a missing printer?
1. Throw a `RuntimeException` or `Error` indicating there's no printer available?
2. Let the test fail with whatever error it may fail when there's no printer?
I'm inclined towards the first option — it gives a clear indication of the error.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17790#issuecomment-1939418142
More information about the client-libs-dev
mailing list