commit | 69fefdd49e725dd102f6a24774686bc058ff74e0 | [log] [tgz] |
---|---|---|
author | Chesnay Schepler <chesnay@apache.org> | Wed Sep 08 10:12:53 2021 +0200 |
committer | Chesnay Schepler <chesnay@apache.org> | Thu Sep 09 07:25:03 2021 +0200 |
tree | 3a5b67438cb90dc622aef3fce03f9b2f5186c4d8 | |
parent | 8081dfbcc2c63dfda385a68f4615ddf5d51ccc26 [diff] |
[hotfix][rest][tests] Cleanup This reverts commit 69de4b66b27f4b83e3b5fff59dfc793209c72640.
diff --git a/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java b/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java index 42c2491..5deba65 100644 --- a/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java +++ b/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/utils/WebFrontendBootstrapTest.java
@@ -61,8 +61,9 @@ configuration.setString( Prio0InboundChannelHandlerFactory.REDIRECT_FROM_URL, "/nonExisting"); configuration.setString(Prio0InboundChannelHandlerFactory.REDIRECT_TO_URL, "/index.html"); - Router router = - new Router().addGet("/:*", new HistoryServerStaticFileServerHandler(webDir)); + Router<?> router = + new Router<>() + .addGet("/:*", new HistoryServerStaticFileServerHandler(webDir.toFile())); WebFrontendBootstrap webUI = new WebFrontendBootstrap( router,