|
|
@ -74,7 +74,7 @@ public class HealthWebEndpointResponseMapperTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void mapDetailsWithAuthorizedUserInvokeSupplier() {
|
|
|
|
public void mapDetailsWithAuthorizedUserInvokesSupplier() {
|
|
|
|
HealthWebEndpointResponseMapper mapper = createMapper(ShowDetails.WHEN_AUTHORIZED);
|
|
|
|
HealthWebEndpointResponseMapper mapper = createMapper(ShowDetails.WHEN_AUTHORIZED);
|
|
|
|
Supplier<Health> supplier = mockSupplier();
|
|
|
|
Supplier<Health> supplier = mockSupplier();
|
|
|
|
given(supplier.get()).willReturn(Health.down().build());
|
|
|
|
given(supplier.get()).willReturn(Health.down().build());
|
|
|
|