|
|
|
@ -61,16 +61,14 @@ public class AutoConfigureTestDatabaseWithMultipleDatasourcesIntegrationTests {
|
|
|
|
|
@Bean
|
|
|
|
|
@Primary
|
|
|
|
|
public DataSource dataSource() {
|
|
|
|
|
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder()
|
|
|
|
|
.generateUniqueName(true).setType(EmbeddedDatabaseType.HSQL);
|
|
|
|
|
return builder.build();
|
|
|
|
|
return new EmbeddedDatabaseBuilder().generateUniqueName(true)
|
|
|
|
|
.setType(EmbeddedDatabaseType.HSQL).build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
public DataSource secondaryDataSource() {
|
|
|
|
|
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder()
|
|
|
|
|
.generateUniqueName(true).setType(EmbeddedDatabaseType.HSQL);
|
|
|
|
|
return builder.build();
|
|
|
|
|
return new EmbeddedDatabaseBuilder().generateUniqueName(true)
|
|
|
|
|
.setType(EmbeddedDatabaseType.HSQL).build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|