use of com.redhat.service.smartevents.processor.actions.ActionRuntime in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ExecutorImplTest method setup.
@BeforeEach
void setup() {
actionInvokerMock = mock(ActionInvoker.class);
ActionInvokerBuilder actionInvokerBuilder = mock(ActionInvokerBuilder.class);
when(actionInvokerBuilder.build(any(), any())).thenReturn(actionInvokerMock);
actionRuntime = mock(ActionRuntime.class);
when(actionRuntime.getInvokerBuilder(KafkaTopicAction.TYPE)).thenReturn(actionInvokerBuilder);
when(actionRuntime.getInvokerBuilder(WebhookAction.TYPE)).thenReturn(actionInvokerBuilder);
when(actionRuntime.getInvokerBuilder(not(or(eq(KafkaTopicAction.TYPE), eq(WebhookAction.TYPE))))).thenThrow(new GatewayProviderException("Unknown action type"));
meterRegistry = new SimpleMeterRegistry();
}
Aggregations