Adapt to API change in gerrit core Gerrit core changed declared exceptions of RestSession methods in I21bef286bbe3ea9e3fc819d8912a501d9350dc8a from IOException to Exception. Change-Id: Ic19b18bc97bb8cdd7d3d96949ec8ff42e4dd978e
diff --git a/src/test/java/com/googlesource/gerrit/plugins/healthcheck/AbstractHealthCheckIntegrationTest.java b/src/test/java/com/googlesource/gerrit/plugins/healthcheck/AbstractHealthCheckIntegrationTest.java index ff924e6..56f96fe 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/healthcheck/AbstractHealthCheckIntegrationTest.java +++ b/src/test/java/com/googlesource/gerrit/plugins/healthcheck/AbstractHealthCheckIntegrationTest.java
@@ -60,11 +60,11 @@ plugin.getSysInjector().getInstance(Key.get(String.class, PluginName.class))); } - protected RestResponse getHealthCheckStatus() throws IOException { + protected RestResponse getHealthCheckStatus() throws Exception { return adminRestSession.get(healthCheckUriPath); } - protected RestResponse getHealthCheckStatusAnonymously() throws IOException { + protected RestResponse getHealthCheckStatusAnonymously() throws Exception { return anonymousRestSession.get(healthCheckUriPath); }