fail(String.format("Image %s index %s could not be read: %s", data.getInput(), i, e)); assertNotNull(String.format("Image %s index %s was null!", data.getInput(), i), image); String.format("Image %s index %s has wrong width: %s", data.getInput(), i, image.getWidth()), data.getDimension(i).width, image.getWidth() ); assertEquals( String.format("Image %s index %s has wrong height: %s", data.getInput(), i, image.getHeight()), data.getDimension(i).height, image.getHeight() );