Polish
This commit is contained in:
parent
e04ace89b9
commit
b05bdbfe4f
|
@ -74,8 +74,8 @@ public class TestDatabaseAutoConfigurationNoEmbeddedTests {
|
||||||
public void applyNoReplace() {
|
public void applyNoReplace() {
|
||||||
load(ExistingDataSourceConfiguration.class, "spring.test.database.replace=NONE");
|
load(ExistingDataSourceConfiguration.class, "spring.test.database.replace=NONE");
|
||||||
assertThat(this.context.getBeansOfType(DataSource.class)).hasSize(1);
|
assertThat(this.context.getBeansOfType(DataSource.class)).hasSize(1);
|
||||||
assertThat(this.context.getBean(DataSource.class)).isSameAs(
|
assertThat(this.context.getBean(DataSource.class))
|
||||||
this.context.getBean("myCustomDataSource"));
|
.isSameAs(this.context.getBean("myCustomDataSource"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void load(Class<?> config, String... environment) {
|
public void load(Class<?> config, String... environment) {
|
||||||
|
|
Loading…
Reference in New Issue