Fix test
This commit is contained in:
@@ -29,6 +29,14 @@ import reactor.core.publisher.Flux;
|
||||
*/
|
||||
public class AzureSpringBootRequestHandler<I, O> extends AzureSpringFunctionInitializer {
|
||||
|
||||
public AzureSpringBootRequestHandler(Class<?> configurationClass) {
|
||||
super(configurationClass);
|
||||
}
|
||||
|
||||
public AzureSpringBootRequestHandler() {
|
||||
super();
|
||||
}
|
||||
|
||||
public O handleRequest(I foo, ExecutionContext context) {
|
||||
if (context != null) {
|
||||
context.getLogger().fine("Handler Java HTTP trigger processed a request.");
|
||||
|
||||
@@ -36,7 +36,8 @@ public class MapTests {
|
||||
|
||||
@Test
|
||||
public void start() throws Exception {
|
||||
AzureSpringBootRequestHandler<Foo, Bar> handler = new AzureSpringBootRequestHandler<>();
|
||||
AzureSpringBootRequestHandler<Foo, Bar> handler = new AzureSpringBootRequestHandler<>(
|
||||
Config.class);
|
||||
Bar result = handler.handleRequest(new Foo("foo"), null);
|
||||
handler.close();
|
||||
assertThat(result.getValue()).isEqualTo("FOO");
|
||||
|
||||
Reference in New Issue
Block a user