Merge branch '6.0.x'

This commit is contained in:
Sam Brannen
2023-09-07 16:50:50 +02:00
2 changed files with 137 additions and 73 deletions

View File

@@ -40,7 +40,7 @@ class FilePatternResourceHintsRegistrarTests {
@Test
void configureWithNoClasspathLocation() {
assertThatIllegalArgumentException().isThrownBy(FilePatternResourceHintsRegistrar::forClassPathLocations)
.withMessageContaining("At least one classpath location should be specified");
.withMessageContaining("At least one classpath location must be specified");
}
@Test
@@ -54,7 +54,7 @@ class FilePatternResourceHintsRegistrarTests {
void configureWithInvalidFileExtension() {
Builder builder = FilePatternResourceHintsRegistrar.forClassPathLocations("");
assertThatIllegalArgumentException().isThrownBy(() -> builder.withFileExtensions("txt"))
.withMessageContaining("should start with '.'");
.withMessageContaining("must start with '.'");
}
@Test