Browse Source

update javadoc and test method to reflect current implementation

pull/1116/head
Tobias Gesellchen 12 years ago
parent
commit
21846f3bc7
  1. 5
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/VanillaHealthIndicator.java
  2. 4
      spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/VanillaHealthIndicatorTests.java

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

@ -17,10 +17,11 @@ @@ -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 {

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

@ -22,13 +22,13 @@ import static org.junit.Assert.assertEquals; @@ -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…
Cancel
Save