From ad0dd9b016ac504efb2b2672fb582e7995cad228 Mon Sep 17 00:00:00 2001 From: Patrice Lopez Date: Sun, 8 Sep 2024 14:41:22 +0200 Subject: [PATCH] avoid using jdk.compiler module stuff --- .../org/pub2tei/document/XMLUtilitiesIntegrationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/pub2tei/document/XMLUtilitiesIntegrationTest.java b/src/test/java/org/pub2tei/document/XMLUtilitiesIntegrationTest.java index 91645fd..637cdb4 100644 --- a/src/test/java/org/pub2tei/document/XMLUtilitiesIntegrationTest.java +++ b/src/test/java/org/pub2tei/document/XMLUtilitiesIntegrationTest.java @@ -1,6 +1,5 @@ package org.pub2tei.document; -import com.sun.tools.javac.util.List; import org.grobid.core.main.GrobidHomeFinder; import org.grobid.core.utilities.GrobidProperties; import org.junit.Before; @@ -13,6 +12,8 @@ import java.io.InputStream; import java.io.StringReader; +import java.util.Arrays; + import static org.hamcrest.MatcherAssert.assertThat; public class XMLUtilitiesIntegrationTest { @@ -20,7 +21,7 @@ public class XMLUtilitiesIntegrationTest { @Before public void setUp() throws Exception { //This test requires to have grobid deployed somewhere under these directories - GrobidHomeFinder finder = new GrobidHomeFinder(List.of("../grobid-home", "../../grobid/grobid-home")); + GrobidHomeFinder finder = new GrobidHomeFinder(Arrays.asList("../grobid-home", "../../grobid/grobid-home")); GrobidProperties.getInstance(finder); }