parent
55ae5be84b
commit
ff0725f6bf
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue