Skip to content

Commit

Permalink
Disable Image IO tests for now
Browse files Browse the repository at this point in the history
We will bring them back when upgrading to GraalVM 21 but for now they
don't work with GraalVM 20.3.
  • Loading branch information
gsmet committed Dec 21, 2020
1 parent 462eff2 commit 1fb47db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package io.quarkus.it.corestuff;

import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Expand All @@ -14,9 +12,10 @@ public class ImageIOSupport extends HttpServlet {

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
BufferedImage image = ImageIO.read(classLoader.getResource("META-INF/resources/1px.png"));
resp.getWriter().write(image.getHeight() + "x" + image.getWidth());
// Please uncomment this when we upgrade from GraalVM 20.3 to GraalVM 21
// ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
// BufferedImage image = ImageIO.read(classLoader.getResource("META-INF/resources/1px.png"));
// resp.getWriter().write(image.getHeight() + "x" + image.getWidth());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static io.restassured.RestAssured.when;
import static org.hamcrest.Matchers.equalTo;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.QuarkusTest;
Expand All @@ -11,6 +12,7 @@
public class ImageIOTestCase {

@Test
@Disabled("Please bring this back when we upgrade from GraalVM 20.3 to GraalVM 21")
public void testImageRead() {
when().get("/core/imageio").then().body(equalTo("1x1"));
}
Expand Down

0 comments on commit 1fb47db

Please sign in to comment.