Merge branch '2.7.x' into 3.0.x
Closes gh-35131
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -571,7 +571,7 @@ public class FlywayProperties {
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return (this.password != null) ? this.password : "";
|
||||
return this.password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
|
||||
@@ -156,7 +156,7 @@ class FlywayAutoConfigurationTests {
|
||||
DataSource dataSource = context.getBean(Flyway.class).getConfiguration().getDataSource();
|
||||
assertThat(dataSource).isNotNull();
|
||||
assertThat(dataSource).hasFieldOrPropertyWithValue("username", null);
|
||||
assertThat(dataSource).hasFieldOrPropertyWithValue("password", "");
|
||||
assertThat(dataSource).hasFieldOrPropertyWithValue("password", null);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user