commit | 123d5be3690708c8eb314140d99dd81901581bc8 | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Tue Mar 12 17:40:09 2024 +0100 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Tue Mar 12 17:40:09 2024 +0100 |
tree | 53fd3048a8d861de7e91ce190982bab01886c171 | |
parent | 2def474c8ef197b00ae0bb77ae002752f7cab581 [diff] |
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); }