Skip to content

Commit

Permalink
Merge branch '3.0.x'
Browse files Browse the repository at this point in the history
Closes gh-34936
  • Loading branch information
snicoll committed Apr 11, 2023
2 parents 0806743 + 164ab51 commit ab1e0f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static class LiquibaseAutoConfigurationRuntimeHints implements RuntimeHintsRegis

@Override
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
hints.resources().registerPattern("db/changelog/db.changelog-master.yaml");
hints.resources().registerPattern("db/changelog/*");
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,10 @@ void whenCustomSpringLiquibaseIsDefinedThenJooqDslContextDependsOnSpringLiquibas
void shouldRegisterHints() {
RuntimeHints hints = new RuntimeHints();
new LiquibaseAutoConfigurationRuntimeHints().registerHints(hints, getClass().getClassLoader());
assertThat(RuntimeHintsPredicates.resource().forResource("db/changelog/")).accepts(hints);
assertThat(RuntimeHintsPredicates.resource().forResource("db/changelog/db.changelog-master.yaml"))
.accepts(hints);
assertThat(RuntimeHintsPredicates.resource().forResource("db/changelog/tables/init.sql")).accepts(hints);
}

private ContextConsumer<AssertableApplicationContext> assertLiquibase(Consumer<SpringLiquibase> consumer) {
Expand Down

0 comments on commit ab1e0f5

Please sign in to comment.