mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-03 23:53:15 -04:00
Add static import of Assumptions.assumeTrue
This commit is contained in:
@@ -50,6 +50,7 @@ import org.junit.jupiter.api.Test;
|
|||||||
|
|
||||||
import static com.twelvemonkeys.imageio.plugins.pict.PICTImageReaderSpi.isOtherFormat;
|
import static com.twelvemonkeys.imageio.plugins.pict.PICTImageReaderSpi.isOtherFormat;
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ICOImageReaderTestCase
|
* ICOImageReaderTestCase
|
||||||
@@ -233,6 +234,7 @@ public class PICTImageReaderTest extends ImageReaderAbstractTest<PICTImageReader
|
|||||||
@Test
|
@Test
|
||||||
public void testQTMaskBytesSkipped() throws IOException {
|
public void testQTMaskBytesSkipped() throws IOException {
|
||||||
assumeTrue(ImageIO.getImageReadersByFormatName("TIFF").hasNext(), "No TIFF plugin available, skipping test");
|
assumeTrue(ImageIO.getImageReadersByFormatName("TIFF").hasNext(), "No TIFF plugin available, skipping test");
|
||||||
|
|
||||||
PICTImageReader reader = createReader();
|
PICTImageReader reader = createReader();
|
||||||
try (ImageInputStream stream = ImageIO.createImageInputStream(getClassLoaderResource("/pict/P30946BDC.pict"))) {
|
try (ImageInputStream stream = ImageIO.createImageInputStream(getClassLoaderResource("/pict/P30946BDC.pict"))) {
|
||||||
reader.setInput(stream);
|
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) */
|
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 */
|
(byte) 0xFF, /* fin */
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user