diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/EndpointIdTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/EndpointIdTests.java index 5f55b634999..e80876f3680 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/EndpointIdTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/EndpointIdTests.java @@ -47,7 +47,7 @@ public class EndpointIdTests { } @Test - public void ofWhenContainsInvalidCharThrowsException() { + public void ofWhenContainsSlashThrowsException() { this.thrown.expect(IllegalArgumentException.class); this.thrown.expectMessage("Value must only contain valid chars"); EndpointId.of("foo/bar");