use of com.redhat.service.bridge.actions.InvokableActionProvider in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class ExecutorTest method setup.
@BeforeEach
void setup() {
actionProviderFactoryMock = mock(ActionProviderFactory.class);
actionInvokerMock = mock(ActionInvoker.class);
InvokableActionProvider actionProvider = mock(InvokableActionProvider.class);
when(actionProvider.getActionInvoker(any(), any())).thenReturn(actionInvokerMock);
when(actionProviderFactoryMock.getInvokableActionProvider(KafkaTopicAction.TYPE)).thenReturn(actionProvider);
when(actionProviderFactoryMock.getInvokableActionProvider(WebhookAction.TYPE)).thenReturn(actionProvider);
when(actionProviderFactoryMock.getInvokableActionProvider(not(or(eq(KafkaTopicAction.TYPE), eq(WebhookAction.TYPE))))).thenThrow(new ActionProviderException("Unknown action type"));
meterRegistry = new SimpleMeterRegistry();
}
Aggregations