mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Add static import of Assumptions.assumeTrue
This commit is contained in:
parent
35da57dfcf
commit
0be5efc534
@ -50,6 +50,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static com.twelvemonkeys.imageio.plugins.pict.PICTImageReaderSpi.isOtherFormat;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
|
||||
/**
|
||||
* ICOImageReaderTestCase
|
||||
@ -233,6 +234,7 @@ public class PICTImageReaderTest extends ImageReaderAbstractTest<PICTImageReader
|
||||
@Test
|
||||
public void testQTMaskBytesSkipped() throws IOException {
|
||||
assumeTrue(ImageIO.getImageReadersByFormatName("TIFF").hasNext(), "No TIFF plugin available, skipping test");
|
||||
|
||||
PICTImageReader reader = createReader();
|
||||
try (ImageInputStream stream = ImageIO.createImageInputStream(getClassLoaderResource("/pict/P30946BDC.pict"))) {
|
||||
reader.setInput(stream);
|
||||
@ -369,4 +371,4 @@ public class PICTImageReaderTest extends ImageReaderAbstractTest<PICTImageReader
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 5 rows of empty bitmap (we copied from a still-blank window) */
|
||||
(byte) 0xFF, /* fin */
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user