From 9fc90a809f0564c79f5244f08d7bdf9c15756355 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 1 Jun 2017 13:37:05 +0200 Subject: [PATCH] Add missing @Test annotations --- .../boot/actuate/endpoint/LoggersEndpointTests.java | 2 ++ 1 file changed, 2 insertions(+) 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);