Withdrawn: 8316412: javax/print tests fail without printer set up

Michal Sobierski duke at openjdk.org
Fri Sep 29 08:42:18 UTC 2023


On Tue, 19 Sep 2023 14:45:47 GMT, Michal Sobierski <duke at openjdk.org> wrote:

> For NullClipARGB we are throwing SkippedException only if instance of caught exception is PrinterException. All other exceptions are considered unrelated to printer configuration.
> 
> For CountPrintServices we want to throw SkippedException in the case when lpstat is not installed, where an IOException is caught in that case.
> 
> For ExceptionTest we want to throw SkippedException for all PrinterExceptions which were not caused by IndexOutOfBoundsException.
> 
> For rest of the tests if PrintService was not created instead RuntimeException we are throwing now SkippedException.
> 
> Tested on environment without printer installed.
> Test are passing with skipped exception as expected.
> 
> Passed: java/awt/print/PrinterJob/ExceptionTest.java
> Passed: java/awt/print/PrinterJob/ImagePrinting/NullClipARGB.java
> Passed: java/awt/print/PrinterJob/PrtException.java
> Passed: javax/print/attribute/AttributeTest.java
> Passed: javax/print/attribute/GetCopiesSupported.java
> Passed: javax/print/attribute/SidesPageRangesTest.java
> Passed: javax/print/attribute/SupportedPrintableAreas.java
> Passed: javax/print/PrintServiceLookup/CountPrintServices.java
> Passed: javax/print/CheckDupFlavor.java
> 
> Additionally unused imports have been removed.

This pull request has been closed without being integrated.

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

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


More information about the client-libs-dev mailing list