@@ -398,7 +398,7 @@ void testFilePatternProperty(CapturedOutput output) {
398398
399399 @ Test
400400 void testCleanHistoryOnStartProperty () {
401- this .environment .setProperty ("logging.file .clean-history-on-start" , "true" );
401+ this .environment .setProperty ("logging.logback.rollingpolicy .clean-history-on-start" , "true" );
402402 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
403403 File file = new File (tmpDir (), "logback-test.log" );
404404 LogFile logFile = getLogFile (file .getPath (), null );
@@ -411,7 +411,7 @@ void testCleanHistoryOnStartProperty() {
411411 @ Test
412412 @ WithIncludeBaseXmlResource
413413 void testCleanHistoryOnStartPropertyWithXmlConfiguration () {
414- this .environment .setProperty ("logging.file .clean-history-on-start" , "true" );
414+ this .environment .setProperty ("logging.logback.rollingpolicy .clean-history-on-start" , "true" );
415415 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
416416 File file = new File (tmpDir (), "logback-test.log" );
417417 LogFile logFile = getLogFile (file .getPath (), null );
@@ -437,7 +437,7 @@ void testMaxFileSizePropertyWithBytesValue() {
437437 }
438438
439439 private void testMaxFileSizeProperty (String sizeValue , String expectedFileSize ) {
440- this .environment .setProperty ("logging.file. max-size" , sizeValue );
440+ this .environment .setProperty ("logging.logback.rollingpolicy. max-file -size" , sizeValue );
441441 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
442442 File file = new File (tmpDir (), "logback-test.log" );
443443 LogFile logFile = getLogFile (file .getPath (), null );
@@ -450,7 +450,7 @@ private void testMaxFileSizeProperty(String sizeValue, String expectedFileSize)
450450 @ Test
451451 @ WithIncludeBaseXmlResource
452452 void testMaxFileSizePropertyWithXmlConfiguration () {
453- this .environment .setProperty ("logging.file. max-size" , "100MB" );
453+ this .environment .setProperty ("logging.logback.rollingpolicy. max-file -size" , "100MB" );
454454 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
455455 File file = new File (tmpDir (), "logback-test.log" );
456456 LogFile logFile = getLogFile (file .getPath (), null );
@@ -462,7 +462,7 @@ void testMaxFileSizePropertyWithXmlConfiguration() {
462462
463463 @ Test
464464 void testMaxHistoryProperty () {
465- this .environment .setProperty ("logging.file .max-history" , "30" );
465+ this .environment .setProperty ("logging.logback.rollingpolicy .max-history" , "30" );
466466 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
467467 File file = new File (tmpDir (), "logback-test.log" );
468468 LogFile logFile = getLogFile (file .getPath (), null );
@@ -475,7 +475,7 @@ void testMaxHistoryProperty() {
475475 @ Test
476476 @ WithIncludeBaseXmlResource
477477 void testMaxHistoryPropertyWithXmlConfiguration () {
478- this .environment .setProperty ("logging.file .max-history" , "30" );
478+ this .environment .setProperty ("logging.logback.rollingpolicy .max-history" , "30" );
479479 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
480480 File file = new File (tmpDir (), "logback-test.log" );
481481 LogFile logFile = getLogFile (file .getPath (), null );
@@ -501,7 +501,7 @@ void testTotalSizeCapPropertyWithBytesValue() {
501501 }
502502
503503 private void testTotalSizeCapProperty (String sizeValue , String expectedFileSize ) {
504- this .environment .setProperty ("logging.file .total-size-cap" , sizeValue );
504+ this .environment .setProperty ("logging.logback.rollingpolicy .total-size-cap" , sizeValue );
505505 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
506506 File file = new File (tmpDir (), "logback-test.log" );
507507 LogFile logFile = getLogFile (file .getPath (), null );
@@ -515,7 +515,7 @@ private void testTotalSizeCapProperty(String sizeValue, String expectedFileSize)
515515 @ WithIncludeBaseXmlResource
516516 void testTotalSizeCapPropertyWithXmlConfiguration () {
517517 String expectedSize = "101 MB" ;
518- this .environment .setProperty ("logging.file .total-size-cap" , expectedSize );
518+ this .environment .setProperty ("logging.logback.rollingpolicy .total-size-cap" , expectedSize );
519519 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
520520 File file = new File (tmpDir (), "logback-test.log" );
521521 LogFile logFile = getLogFile (file .getPath (), null );
@@ -773,9 +773,9 @@ void logbackSystemStatusListenerShouldBeRegisteredWhenUsingCustomLogbackXml(Capt
773773 }
774774
775775 @ Test
776- void testRollingFileNameProperty () {
776+ void testRollingFileNamePatternProperty () {
777777 String rollingFile = "my.log.%d{yyyyMMdd}.%i.gz" ;
778- this .environment .setProperty ("logging.pattern.rolling- file-name" , rollingFile );
778+ this .environment .setProperty ("logging.logback.rollingpolicy. file-name-pattern " , rollingFile );
779779 LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext (this .environment );
780780 File file = new File (tmpDir (), "my.log" );
781781 LogFile logFile = getLogFile (file .getPath (), null );
0 commit comments