Commit 9fc90a80 authored by Stephane Nicoll's avatar Stephane Nicoll

Add missing @Test annotations

parent 5c708ae7
......@@ -65,6 +65,7 @@ public class LoggersEndpointTests extends AbstractEndpointTests<LoggersEndpoint>
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<LoggersEndpoint>
assertThat(levels.getEffectiveLevel()).isEqualTo("DEBUG");
}
@Test
public void setLogLevelShouldSetLevelOnLoggingSystem() throws Exception {
getEndpointBean().setLogLevel("ROOT", LogLevel.DEBUG);
verify(getLoggingSystem()).setLogLevel("ROOT", LogLevel.DEBUG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment