diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LoggersEndpointTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LoggersEndpointTests.java index 70465a8e1a3..819fa145942 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LoggersEndpointTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/LoggersEndpointTests.java @@ -65,6 +65,7 @@ public class LoggersEndpointTests extends AbstractEndpointTests LogLevel.WARN, LogLevel.INFO, LogLevel.DEBUG, LogLevel.TRACE); } + @Test public void invokeWhenNameSpecifiedShouldReturnLevels() throws Exception { given(getLoggingSystem().getLoggerConfiguration("ROOT")) .willReturn(new LoggerConfiguration("ROOT", null, LogLevel.DEBUG)); @@ -73,6 +74,7 @@ public class LoggersEndpointTests extends AbstractEndpointTests assertThat(levels.getEffectiveLevel()).isEqualTo("DEBUG"); } + @Test public void setLogLevelShouldSetLevelOnLoggingSystem() throws Exception { getEndpointBean().setLogLevel("ROOT", LogLevel.DEBUG); verify(getLoggingSystem()).setLogLevel("ROOT", LogLevel.DEBUG);