Skip to content

Commit

Permalink
TIKA-4327: must use jetty 12 API
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Dec 14, 2024
1 parent 5efd04e commit 77aee54
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import org.awaitility.Awaitility;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ResourceHandler;
import org.eclipse.jetty.util.resource.PathResource;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
Expand Down Expand Up @@ -94,9 +93,7 @@ static void setUpHttpServer() throws Exception {

ResourceHandler resourceHandler = new ResourceHandler();
resourceHandler.setDirAllowed(true);
// TODO when using jetty 12:
// resourceHandler.setBaseResourceAsString("src/test/resources/test-files")
resourceHandler.setBaseResource(new PathResource(Paths.get("src", "test", "resources", "test-files")));
resourceHandler.setBaseResourceAsString("src/test/resources/test-files");
httpServer.setHandler(resourceHandler);
httpServer.start();

Expand Down

0 comments on commit 77aee54

Please sign in to comment.