Skip to content

Commit ae39614

Browse files
committed
Use Quarkus path in Arquillian Servlet
1 parent 4f843d5 commit ae39614

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test-framework/arquillian/src/main/java/io/quarkus/arquillian/QuarkusDeployableContainer.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,11 @@ public void execute(BuildContext context) {
242242
URI uri = URI.create(testUri);
243243
HTTPContext httpContext = new HTTPContext(uri.getHost(), uri.getPort());
244244
// This is to work around https://github.com/arquillian/arquillian-core/issues/216
245-
httpContext.add(new Servlet("dummy", "/"));
245+
String path = uri.getPath();
246+
if (path == null || path.isEmpty()) {
247+
path = "/";
248+
}
249+
httpContext.add(new Servlet("dummy", path));
246250
metadata.addContext(httpContext);
247251
return metadata;
248252
}

0 commit comments

Comments
 (0)