Skip to content

Commit 443e3d5

Browse files
committed
Polishing
1 parent cf75a09 commit 443e3d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-context/src/test/java/org/springframework/context/annotation/PropertySourceAnnotationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,12 @@ void orderingDoesntReplaceExisting() {
307307

308308
private static void assertEnvironmentContainsProperties(ApplicationContext ctx, String... names) {
309309
for (String name : names) {
310-
assertThat(ctx.getEnvironment().containsProperty(name)).as("environment contains property " + name).isTrue();
310+
assertThat(ctx.getEnvironment().containsProperty(name)).as("environment contains property '%s'", name).isTrue();
311311
}
312312
}
313313

314314
private static void assertEnvironmentProperty(ApplicationContext ctx, String name, Object value) {
315-
assertThat(ctx.getEnvironment().getProperty(name)).isEqualTo(value);
315+
assertThat(ctx.getEnvironment().getProperty(name)).as("environment property '%s'", name).isEqualTo(value);
316316
}
317317

318318

0 commit comments

Comments
 (0)