Purge some more deprecated constructor usages

This commit is contained in:
Dave Syer
2018-09-17 15:21:40 +01:00
parent f7b184c4c3
commit 3c91914f82
3 changed files with 3 additions and 4 deletions

View File

@@ -271,8 +271,8 @@ public class ContextFunctionCatalogInitializerTests {
public void initialize(GenericApplicationContext context) {
context.registerBean("foos", FunctionConfiguration.class, () -> this);
context.registerBean("function", FunctionRegistration.class,
() -> new FunctionRegistration<>(this)
.type(FunctionConfiguration.class).name("foos"));
() -> new FunctionRegistration<>(this, "foos")
.type(FunctionConfiguration.class));
}
@Override