--- old/test/javax/imageio/plugins/bmp/BMP8BPPLoadTest.java 2018-10-24 22:50:29.906630820 -0700 +++ new/test/javax/imageio/plugins/bmp/BMP8BPPLoadTest.java 2018-10-24 22:50:29.764617295 -0700 @@ -25,7 +25,6 @@ * @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 */ @@ -39,7 +38,7 @@ public BMP8BPPLoadTest() throws IOException { try { - BufferedImage image = ImageIO.read(new File("BMP8BPPLoadTest.bmp")); + 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");