Skip to content

Commit 21846f3

Browse files
committed
update javadoc and test method to reflect current implementation
1 parent 2bff12a commit 21846f3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/VanillaHealthIndicator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
package org.springframework.boot.actuate.health;
1818

1919
/**
20-
* Default implementation of {@link HealthIndicator} that simply returns {@literal "ok"}.
21-
*
20+
* Default implementation of {@link HealthIndicator} that simply returns {@literal "UP"}.
21+
*
2222
* @author Dave Syer
2323
* @author Christian Dupuis
24+
* @see Status#UP
2425
*/
2526
public class VanillaHealthIndicator extends AbstractHealthIndicator {
2627

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/VanillaHealthIndicatorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
/**
2424
* Tests for {@link VanillaHealthIndicator}.
25-
*
25+
*
2626
* @author Phillip Webb
2727
*/
2828
public class VanillaHealthIndicatorTests {
2929

3030
@Test
31-
public void ok() throws Exception {
31+
public void indicatesUp() throws Exception {
3232
VanillaHealthIndicator healthIndicator = new VanillaHealthIndicator();
3333
assertEquals(Status.UP, healthIndicator.health().getStatus());
3434
}

0 commit comments

Comments
 (0)