Skip to content

Commit 5a4c6d6

Browse files
chengyoulingyhs0092
authored andcommitted
fixed test
1 parent cdbf96a commit 5a4c6d6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

foundations/foundation-vertx/src/test/java/io/vertx/ext/web/impl/TestHttpServerRequestUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public void testVertxServerRequestToHttpServletRequest() {
3636
HttpServerRequestInternal request = Mockito.mock(HttpServerRequestInternal.class);
3737
HttpServerRequestWrapper wrapper = new HttpServerRequestWrapper(request, AllowForwardHeaders.NONE, null);
3838
Mockito.when(request.scheme()).thenReturn("http");
39+
Mockito.when(request.uri()).thenReturn("http://localhost:8080");
3940
Mockito.when(context.request()).thenReturn(wrapper);
4041
Mockito.when(request.authority()).thenReturn(HostAndPort.create("localhost", 8080));
4142
RequestBody requestBody = Mockito.mock(RequestBody.class);

0 commit comments

Comments
 (0)