Remove unnecessary throws declaration in tests

See gh-26441
This commit is contained in:
weixsun
2021-05-13 00:22:53 +08:00
committed by Stephane Nicoll
parent 574655dc84
commit 8a2be288a3
129 changed files with 345 additions and 369 deletions

View File

@@ -47,7 +47,7 @@ class MetricsHealthMicrometerExportTests {
private MeterRegistry registry;
@Test
void registryExportsHealth() throws Exception {
void registryExportsHealth() {
Gauge gauge = this.registry.get("health").gauge();
assertThat(gauge.value()).isEqualTo(2);
}