< prev index next >

test/javax/imageio/plugins/bmp/BMP8BPPLoadTest.java

Print this page

        

*** 23,33 **** /** * @test * @bug 8182461 * @summary Test verifies that the 8BPP indexed color BMP image file is read properly - * @requires BMP8BPPLoadTest.PNG * @run main BMP8BPPLoadTest * @author fairoz.matte */ import java.awt.image.BufferedImage; import java.io.File; --- 23,32 ----
*** 37,47 **** public class BMP8BPPLoadTest { public BMP8BPPLoadTest() throws IOException { try { ! BufferedImage image = ImageIO.read(new File("BMP8BPPLoadTest.bmp")); System.out.println("Test Passed ImageIO.read able to read the file"); } catch (IndexOutOfBoundsException iobe) { System.out.println("Test Failed with ImageIO.read throwing IndexOutOfBoundsException"); } } --- 36,46 ---- public class BMP8BPPLoadTest { public BMP8BPPLoadTest() throws IOException { try { ! BufferedImage image = ImageIO.read(BMP8BPPLoadTest.class.getResource("BMP8BPPLoadTest.bmp")); System.out.println("Test Passed ImageIO.read able to read the file"); } catch (IndexOutOfBoundsException iobe) { System.out.println("Test Failed with ImageIO.read throwing IndexOutOfBoundsException"); } }
< prev index next >