pull/12272/head
Andy Wilkinson 7 years ago
parent 9640881f38
commit dc36360155

@ -82,7 +82,7 @@ public class ExposeExcludePropertyEndpointFilter<E extends ExposableEndpoint<?>>
if (items == null) {
return Collections.emptySet();
}
return items.stream().map(item -> item.toLowerCase(Locale.ENGLISH))
return items.stream().map((item) -> item.toLowerCase(Locale.ENGLISH))
.collect(Collectors.toCollection(HashSet::new));
}

@ -98,7 +98,7 @@ public class MessageSourceAutoConfigurationTests {
private ContextConsumer<AssertableApplicationContext> assertCache(long expected) {
return (context) -> {
assertThat(assertThat(context).hasSingleBean(MessageSource.class));
assertThat(context).hasSingleBean(MessageSource.class);
assertThat(new DirectFieldAccessor(context.getBean(MessageSource.class))
.getPropertyValue("cacheMillis")).isEqualTo(expected);
};

@ -69,9 +69,7 @@ class OriginTrackedYamlLoader extends YamlProcessor {
public List<Map<String, Object>> load() {
final List<Map<String, Object>> result = new ArrayList<>();
process((properties, map) -> {
result.add(getFlattenedMap(map));
});
process((properties, map) -> result.add(getFlattenedMap(map)));
return result;
}

@ -87,8 +87,8 @@ public class StringToEnumIgnoringCaseConverterFactoryTests {
Locale.setDefault(new Locale("tr"));
LocaleSensitiveEnum result = this.conversionService.convert(
"accept-case-insensitive-properties", LocaleSensitiveEnum.class);
assertThat(result
.equals(LocaleSensitiveEnum.ACCEPT_CASE_INSENSITIVE_PROPERTIES));
assertThat(result)
.isEqualTo(LocaleSensitiveEnum.ACCEPT_CASE_INSENSITIVE_PROPERTIES);
}
finally {
Locale.setDefault(defaultLocale);

Loading…
Cancel
Save