mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
update javadoc and test method to reflect current implementation
This commit is contained in:
parent
2bff12a7b5
commit
21846f3bc7
@ -17,10 +17,11 @@
|
||||
package org.springframework.boot.actuate.health;
|
||||
|
||||
/**
|
||||
* Default implementation of {@link HealthIndicator} that simply returns {@literal "ok"}.
|
||||
*
|
||||
* Default implementation of {@link HealthIndicator} that simply returns {@literal "UP"}.
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @author Christian Dupuis
|
||||
* @see Status#UP
|
||||
*/
|
||||
public class VanillaHealthIndicator extends AbstractHealthIndicator {
|
||||
|
||||
|
@ -22,13 +22,13 @@ import static org.junit.Assert.assertEquals;
|
||||
|
||||
/**
|
||||
* Tests for {@link VanillaHealthIndicator}.
|
||||
*
|
||||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
public class VanillaHealthIndicatorTests {
|
||||
|
||||
@Test
|
||||
public void ok() throws Exception {
|
||||
public void indicatesUp() throws Exception {
|
||||
VanillaHealthIndicator healthIndicator = new VanillaHealthIndicator();
|
||||
assertEquals(Status.UP, healthIndicator.health().getStatus());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user