From 21846f3bc7124310f352eaed6eb05e79cf621a96 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Tue, 17 Jun 2014 18:10:24 +0200 Subject: [PATCH] update javadoc and test method to reflect current implementation --- .../boot/actuate/health/VanillaHealthIndicator.java | 5 +++-- .../boot/actuate/health/VanillaHealthIndicatorTests.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/VanillaHealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/VanillaHealthIndicator.java index 5c8c63118d..270aa42adf 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/VanillaHealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/VanillaHealthIndicator.java @@ -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 { diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/VanillaHealthIndicatorTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/VanillaHealthIndicatorTests.java index e779862d6f..af167bee49 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/VanillaHealthIndicatorTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/VanillaHealthIndicatorTests.java @@ -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()); }