Commit ff0725f6 authored by Phillip Webb's avatar Phillip Webb

Fix HazelcastHealthIndicatorTests

See gh-24337
parent 55ae5be8
...@@ -58,7 +58,7 @@ class HazelcastHealthIndicatorTests { ...@@ -58,7 +58,7 @@ class HazelcastHealthIndicatorTests {
@Test @Test
void hazelcastDown() { void hazelcastDown() {
given(this.hazelcast.executeTransaction(any())).willReturn(new HazelcastException()); given(this.hazelcast.executeTransaction(any())).willThrow(new HazelcastException());
Health health = new HazelcastHealthIndicator(this.hazelcast).health(); Health health = new HazelcastHealthIndicator(this.hazelcast).health();
assertThat(health.getStatus()).isEqualTo(Status.DOWN); assertThat(health.getStatus()).isEqualTo(Status.DOWN);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment