Add missing @Test annotations

This commit is contained in:
Stephane Nicoll 2017-06-01 13:37:05 +02:00
parent 5c708ae712
commit 9fc90a809f
1 changed files with 2 additions and 0 deletions

View File

@ -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);