GH-264 Simplified signagure for Supplier
This commit is contained in:
@@ -44,6 +44,10 @@ public class AzureSpringBootRequestHandler<I, O> extends AbstractSpringFunctionA
|
||||
super();
|
||||
}
|
||||
|
||||
public O handleRequest(ExecutionContext context) {
|
||||
return this.handleRequest(null, context);
|
||||
}
|
||||
|
||||
public O handleRequest(I input, ExecutionContext context) {
|
||||
String name = null;
|
||||
try {
|
||||
|
||||
@@ -125,7 +125,7 @@ public class AzureSpringBootRequestHandlerTests {
|
||||
@Test
|
||||
public void supplierNonFluxBean() {
|
||||
AzureSpringBootRequestHandler<Void, List<String>> handler = handler(NonFluxSupplierConfig.class);
|
||||
List<String> result = handler.handleRequest(null, new TestExecutionContext("supplier"));
|
||||
List<String> result = handler.handleRequest(new TestExecutionContext("supplier"));
|
||||
|
||||
assertThat(result).isNotEmpty();
|
||||
assertThat(result.toString()).isEqualTo("[foo1, foo2]");
|
||||
|
||||
Reference in New Issue
Block a user