|
|
@ -187,7 +187,7 @@ public class LoggersMvcEndpointTests {
|
|
|
|
throws Exception {
|
|
|
|
throws Exception {
|
|
|
|
given(this.loggingSystem.getLoggerConfiguration("com.png"))
|
|
|
|
given(this.loggingSystem.getLoggerConfiguration("com.png"))
|
|
|
|
.willReturn(new LoggerConfiguration("com.png", null, LogLevel.DEBUG));
|
|
|
|
.willReturn(new LoggerConfiguration("com.png", null, LogLevel.DEBUG));
|
|
|
|
this.mvc.perform(get("/loggers/com.png")).andExpect(status().isOk())
|
|
|
|
this.mvc.perform(get("/application/loggers/com.png")).andExpect(status().isOk())
|
|
|
|
.andExpect(content().string(equalTo(
|
|
|
|
.andExpect(content().string(equalTo(
|
|
|
|
"{\"configuredLevel\":null," + "\"effectiveLevel\":\"DEBUG\"}")));
|
|
|
|
"{\"configuredLevel\":null," + "\"effectiveLevel\":\"DEBUG\"}")));
|
|
|
|
}
|
|
|
|
}
|
|
|
|