mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-20 22:59:01 +00:00
Polish
This commit is contained in:
+2
-2
@@ -74,8 +74,8 @@ public class TestDatabaseAutoConfigurationNoEmbeddedTests {
|
||||
public void applyNoReplace() {
|
||||
load(ExistingDataSourceConfiguration.class, "spring.test.database.replace=NONE");
|
||||
assertThat(this.context.getBeansOfType(DataSource.class)).hasSize(1);
|
||||
assertThat(this.context.getBean(DataSource.class)).isSameAs(
|
||||
this.context.getBean("myCustomDataSource"));
|
||||
assertThat(this.context.getBean(DataSource.class))
|
||||
.isSameAs(this.context.getBean("myCustomDataSource"));
|
||||
}
|
||||
|
||||
public void load(Class<?> config, String... environment) {
|
||||
|
||||
Reference in New Issue
Block a user