Commit fa78170d authored by Stephane Nicoll's avatar Stephane Nicoll

Fix LiquibaseAutoConfigurationTests with Java 9

Liquibase does not currently work with Java 9. This commit disables on
test reproducing that behaviour when running with that version.

See gh-10442
parent 6bf33774
......@@ -36,6 +36,8 @@ import org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfigurati
import org.springframework.boot.jdbc.DataSourceBuilder;
import org.springframework.boot.liquibase.CommonsLoggingLiquibaseLogger;
import org.springframework.boot.liquibase.LiquibaseServiceLocatorApplicationListener;
import org.springframework.boot.system.JavaVersion;
import org.springframework.boot.test.Assume;
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.springframework.boot.test.context.runner.ContextConsumer;
......@@ -112,6 +114,7 @@ public class LiquibaseAutoConfigurationTests {
@Test
public void changelogSql() {
Assume.javaVersion(JavaVersion.EIGHT);
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class)
.withPropertyValues(
"spring.liquibase.change-log:classpath:/db/changelog/db.changelog-override.sql")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment