Commit c85c653e authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Add negative tests to ConfigurationPropertiesScanTests"

Closes gh-16758
parent d44ffd35
...@@ -66,7 +66,7 @@ public class ConfigurationPropertiesScanTests { ...@@ -66,7 +66,7 @@ public class ConfigurationPropertiesScanTests {
load(TestConfiguration.class); load(TestConfiguration.class);
assertThat(this.context.containsBean( assertThat(this.context.containsBean(
"profile-org.springframework.boot.context.properties.scan.valid.a.AScanConfiguration$MyProfileProperties")) "profile-org.springframework.boot.context.properties.scan.valid.a.AScanConfiguration$MyProfileProperties"))
.isFalse(); .isFalse();
} }
@Test @Test
...@@ -87,7 +87,7 @@ public class ConfigurationPropertiesScanTests { ...@@ -87,7 +87,7 @@ public class ConfigurationPropertiesScanTests {
load(TestConfiguration.class); load(TestConfiguration.class);
assertThat(this.context.containsBean( assertThat(this.context.containsBean(
"resource-org.springframework.boot.context.properties.scan.valid.a.AScanConfiguration$MyResourceProperties")) "resource-org.springframework.boot.context.properties.scan.valid.a.AScanConfiguration$MyResourceProperties"))
.isFalse(); .isFalse();
} }
private void load(Class<?>... classes) { private void load(Class<?>... classes) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment