From c8a0c99a21a52bab283024951a9ccd00e7e532e9 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 17 Dec 2018 16:31:54 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20D=E2=80=A6S=E2=80=A6Init=E2=80=A6Invok?= =?UTF-8?q?erTests'=20assumptions=20about=20classpath=20structure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See gh-15471 --- .../jdbc/DataSourceInitializerInvokerTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceInitializerInvokerTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceInitializerInvokerTests.java index 36db35ca78..a2e6d5af0e 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceInitializerInvokerTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceInitializerInvokerTests.java @@ -233,9 +233,10 @@ public class DataSourceInitializerInvokerTests { .withPropertyValues("spring.datasource.initialization-mode=always", "spring.datasource.url:jdbc:hsqldb:mem:testdb-" + new Random().nextInt(), - "spring.datasource.schema:" + "spring.datasource.schema:classpath*:" + getRelativeLocationFor("lexical-schema-*.sql"), - "spring.datasource.data:" + getRelativeLocationFor("data.sql")) + "spring.datasource.data:classpath*:" + + getRelativeLocationFor("data.sql")) .run((context) -> { DataSource dataSource = context.getBean(DataSource.class); assertThat(dataSource).isInstanceOf(HikariDataSource.class);