|
|
@ -223,8 +223,8 @@ class DataSourceInitializerInvokerTests {
|
|
|
|
assertThat(context.getStartupFailure()).isInstanceOf(BeanCreationException.class);
|
|
|
|
assertThat(context.getStartupFailure()).isInstanceOf(BeanCreationException.class);
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("[does/not/exist.sql]");
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("[does/not/exist.sql]");
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("spring.datasource.schema");
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("spring.datasource.schema");
|
|
|
|
assertThat(context.getStartupFailure())
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining(
|
|
|
|
.hasMessageContaining("Resource 'classpath:does/not/exist.sql' does not exist.");
|
|
|
|
"No resources were found at location 'classpath:does/not/exist.sql'.");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -237,8 +237,8 @@ class DataSourceInitializerInvokerTests {
|
|
|
|
assertThat(context.getStartupFailure()).isInstanceOf(BeanCreationException.class);
|
|
|
|
assertThat(context.getStartupFailure()).isInstanceOf(BeanCreationException.class);
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("[does/not/exist.sql]");
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("[does/not/exist.sql]");
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("spring.datasource.data");
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining("spring.datasource.data");
|
|
|
|
assertThat(context.getStartupFailure())
|
|
|
|
assertThat(context.getStartupFailure()).hasMessageContaining(
|
|
|
|
.hasMessageContaining("Resource 'classpath:does/not/exist.sql' does not exist.");
|
|
|
|
"No resources were found at location 'classpath:does/not/exist.sql'.");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|