@@ -159,7 +159,7 @@ void testNonDefaultConfigLocation(CapturedOutput output) {
159159 assertThat (output ).contains ("Hello world" ).contains (tmpDir () + "/tmp.log" );
160160 assertThat (new File (tmpDir () + "/tmp.log" )).doesNotExist ();
161161 assertThat (configuration .getConfigurationSource ().getFile ().getAbsolutePath ())
162- .contains ("log4j2-nondefault.xml" );
162+ .contains ("log4j2-nondefault.xml" );
163163 assertThat (configuration .getWatchManager ().getIntervalSeconds ()).isEqualTo (30 );
164164 }
165165
@@ -236,7 +236,7 @@ void getLoggingConfiguration() {
236236 this .loggingSystem .setLogLevel (getClass ().getName (), LogLevel .DEBUG );
237237 LoggerConfiguration configuration = this .loggingSystem .getLoggerConfiguration (getClass ().getName ());
238238 assertThat (configuration )
239- .isEqualTo (new LoggerConfiguration (getClass ().getName (), LogLevel .DEBUG , LogLevel .DEBUG ));
239+ .isEqualTo (new LoggerConfiguration (getClass ().getName (), LogLevel .DEBUG , LogLevel .DEBUG ));
240240 }
241241
242242 @ Test
@@ -391,7 +391,7 @@ void getLoggingConfigurationWithResetLevelReturnsNull() {
391391 this .loggingSystem .setLogLevel ("com.example.test" , LogLevel .DEBUG );
392392 LoggerConfiguration configuration = this .loggingSystem .getLoggerConfiguration ("com.example.test" );
393393 assertThat (configuration )
394- .isEqualTo (new LoggerConfiguration ("com.example.test" , LogLevel .DEBUG , LogLevel .DEBUG ));
394+ .isEqualTo (new LoggerConfiguration ("com.example.test" , LogLevel .DEBUG , LogLevel .DEBUG ));
395395 this .loggingSystem .setLogLevel ("com.example.test" , null );
396396 LoggerConfiguration updatedConfiguration = this .loggingSystem .getLoggerConfiguration ("com.example.test" );
397397 assertThat (updatedConfiguration ).isNull ();
@@ -402,17 +402,18 @@ void getLoggingConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConf
402402 LoggerContext loggerContext = (LoggerContext ) LogManager .getContext (false );
403403 this .loggingSystem .beforeInitialize ();
404404 this .loggingSystem .initialize (this .initializationContext , null , null );
405- loggerContext .getConfiguration ().addLogger ("com.example.test" ,
406- new LoggerConfig ("com.example.test" , org .apache .logging .log4j .Level .INFO , false ));
405+ loggerContext .getConfiguration ()
406+ .addLogger ("com.example.test" ,
407+ new LoggerConfig ("com.example.test" , org .apache .logging .log4j .Level .INFO , false ));
407408 this .loggingSystem .setLogLevel ("com.example" , LogLevel .WARN );
408409 this .loggingSystem .setLogLevel ("com.example.test" , LogLevel .DEBUG );
409410 LoggerConfiguration configuration = this .loggingSystem .getLoggerConfiguration ("com.example.test" );
410411 assertThat (configuration )
411- .isEqualTo (new LoggerConfiguration ("com.example.test" , LogLevel .DEBUG , LogLevel .DEBUG ));
412+ .isEqualTo (new LoggerConfiguration ("com.example.test" , LogLevel .DEBUG , LogLevel .DEBUG ));
412413 this .loggingSystem .setLogLevel ("com.example.test" , null );
413414 LoggerConfiguration updatedConfiguration = this .loggingSystem .getLoggerConfiguration ("com.example.test" );
414415 assertThat (updatedConfiguration )
415- .isEqualTo (new LoggerConfiguration ("com.example.test" , LogLevel .WARN , LogLevel .WARN ));
416+ .isEqualTo (new LoggerConfiguration ("com.example.test" , LogLevel .WARN , LogLevel .WARN ));
416417 }
417418
418419 @ Test
@@ -436,7 +437,7 @@ void log4jLevelsArePropagatedToJul() {
436437 void shutdownHookIsDisabled () {
437438 assertThat (
438439 PropertiesUtil .getProperties ().getBooleanProperty (ShutdownCallbackRegistry .SHUTDOWN_HOOK_ENABLED , true ))
439- .isFalse ();
440+ .isFalse ();
440441 }
441442
442443 @ Test
@@ -475,9 +476,11 @@ void initializeAddsSpringEnvironmentPropertySource() {
475476 void nonFileUrlsAreResolvedUsingLog4J2UrlConnectionFactory () {
476477 this .loggingSystem .beforeInitialize ();
477478 assertThatIllegalStateException ()
478- .isThrownBy (() -> this .loggingSystem .initialize (this .initializationContext ,
479- "http://localhost:8080/shouldnotwork" , null ))
480- .havingCause ().isInstanceOf (ProtocolException .class ).withMessageContaining ("http has not been enabled" );
479+ .isThrownBy (() -> this .loggingSystem .initialize (this .initializationContext ,
480+ "http://localhost:8080/shouldnotwork" , null ))
481+ .havingCause ()
482+ .isInstanceOf (ProtocolException .class )
483+ .withMessageContaining ("http has not been enabled" );
481484 }
482485
483486 private String getRelativeClasspathLocation (String fileName ) {
0 commit comments