Add ability to check if a HealthCheck.Result is healthy using a boolean #494
Labels
new feature
A new feature such as a new class, method, package, group of classes, etc.
Milestone
HealthCheckResultAssertions
contains fluentisHealthy()
andisUnhealthy()
methods, which works in most cases.But if you have a JUnit
@ParameterizedTest
to check various health check results, and all you care about is healthy or not, you can't. Instead, you must break these into separate tests.For situations like this, it would be nice to be able to provide a
boolean
. For example, I want to be able to do this:In the above example code,
hasHealthyValue
accepts aboolean
wheretrue
means healthy andfalse
meansunhealthy
.The text was updated successfully, but these errors were encountered: