@ -150,7 +150,7 @@ public class LoggersMvcEndpointTests {
@@ -150,7 +150,7 @@ public class LoggersMvcEndpointTests {
@Test
public void setLoggerUsingApplicationJsonShouldSetLogLevel ( ) throws Exception {
this . mvc . perform ( post ( PATH + "/ROOT" ) . contentType ( MediaType . APPLICATION_JSON )
. content ( "{\"configuredLevel\":\"debug\"}" ) ) . andExpect ( status ( ) . isOk ( ) ) ;
. content ( "{\"configuredLevel\":\"debug\"}" ) ) . andExpect ( status ( ) . isNoContent ( ) ) ;
verify ( this . loggingSystem ) . setLogLevel ( "ROOT" , LogLevel . DEBUG ) ;
}
@ -158,7 +158,7 @@ public class LoggersMvcEndpointTests {
@@ -158,7 +158,7 @@ public class LoggersMvcEndpointTests {
public void setLoggerUsingActuatorV2JsonShouldSetLogLevel ( ) throws Exception {
this . mvc . perform ( post ( PATH + "/ROOT" )
. contentType ( ActuatorMediaTypes . APPLICATION_ACTUATOR_V2_JSON )
. content ( "{\"configuredLevel\":\"debug\"}" ) ) . andExpect ( status ( ) . isOk ( ) ) ;
. content ( "{\"configuredLevel\":\"debug\"}" ) ) . andExpect ( status ( ) . isNoContent ( ) ) ;
verify ( this . loggingSystem ) . setLogLevel ( "ROOT" , LogLevel . DEBUG ) ;
}