Polishing

This commit is contained in:
Sam Brannen
2016-03-12 14:58:06 +01:00
parent 92e715ed93
commit c41c5dd5c9

View File

@@ -56,9 +56,10 @@ public class ContextCustomizerSpringRunnerTests {
@Override
protected List<ContextCustomizerFactory> getContextCustomizerFactories() {
return singletonList((testClass, configAttributes) ->
// ContextCustomizer as lambda expression:
(context, mergedConfig) -> context.getBeanFactory().registerSingleton("foo", "foo"));
return singletonList(
(ContextCustomizerFactory) (testClass, configAttributes) ->
(ContextCustomizer) (context, mergedConfig) -> context.getBeanFactory().registerSingleton("foo", "foo")
);
}
}