Merge pull request #16094 from izeye

* pr/16094:
  Polish
This commit is contained in:
Stephane Nicoll 2019-03-05 08:19:42 +01:00
commit 873fd3f6b0
2 changed files with 3 additions and 3 deletions

View File

@ -767,7 +767,7 @@ special classloader, then it is considered a "`production application`". If that
apply to you (i.e. if you run your application from a container), consider excluding
devtools or set the `-Dspring.devtools.restart.enabled=false` system property.
TIP: Flagging the dependency as optional in Maven or using a custom`developmentOnly`
TIP: Flagging the dependency as optional in Maven or using a custom `developmentOnly`
configuration in Gradle (as shown above) is a best practice that prevents devtools from
being transitively applied to other modules that use your project.

View File

@ -471,7 +471,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
testTotalSizeCapProperty(String.valueOf(10 * 1024 * 1024), "10 MB");
}
private void testTotalSizeCapProperty(String sizeValue, String expectFileSize) {
private void testTotalSizeCapProperty(String sizeValue, String expectedFileSize) {
MockEnvironment environment = new MockEnvironment();
environment.setProperty("logging.file.total-size-cap", sizeValue);
LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext(
@ -482,7 +482,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
this.logger.info("Hello world");
assertThat(getLineWithText(file, "Hello world")).contains("INFO");
assertThat(ReflectionTestUtils.getField(getRollingPolicy(), "totalSizeCap")
.toString()).isEqualTo(expectFileSize);
.toString()).isEqualTo(expectedFileSize);
}
@Test