Merge pull request #14049 from izeye:polish-20180813
* pr/14049: Polish
This commit is contained in:
commit
df779b4eeb
|
@ -79,7 +79,6 @@ public class LiquibaseEndpointTests {
|
||||||
|
|
||||||
private boolean getAutoCommit(DataSource dataSource) throws SQLException {
|
private boolean getAutoCommit(DataSource dataSource) throws SQLException {
|
||||||
try (Connection connection = dataSource.getConnection()) {
|
try (Connection connection = dataSource.getConnection()) {
|
||||||
System.out.println(connection);
|
|
||||||
return connection.getAutoCommit();
|
return connection.getAutoCommit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -685,12 +685,9 @@ public class ConfigFileApplicationListener
|
||||||
* @param processedProfiles the processed profiles
|
* @param processedProfiles the processed profiles
|
||||||
*/
|
*/
|
||||||
private void resetEnvironmentProfiles(List<Profile> processedProfiles) {
|
private void resetEnvironmentProfiles(List<Profile> processedProfiles) {
|
||||||
String[] names = processedProfiles.stream().filter((profile) -> {
|
String[] names = processedProfiles.stream()
|
||||||
if (profile != null && !profile.isDefaultProfile()) {
|
.filter((profile) -> profile != null && !profile.isDefaultProfile())
|
||||||
return true;
|
.map(Profile::getName).toArray(String[]::new);
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}).map(Profile::getName).toArray(String[]::new);
|
|
||||||
this.environment.setActiveProfiles(names);
|
this.environment.setActiveProfiles(names);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -616,7 +616,7 @@ public class MapBinderTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void bindToImmutableMapShouldReturnPopulatedCollection() {
|
public void bindToImmutableMapShouldReturnPopulatedMap() {
|
||||||
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
|
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
|
||||||
source.put("foo.values.c", "d");
|
source.put("foo.values.c", "d");
|
||||||
source.put("foo.values.e", "f");
|
source.put("foo.values.e", "f");
|
||||||
|
|
Loading…
Reference in New Issue