use of com.redhat.service.bridge.actions.ActionInvoker in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class WebhookActionTest method testInvokerOk.
@Test
void testInvokerOk() {
ProcessorDTO processor = createProcessorWithActionForEndpoint("http://www.example.com/webhook");
ActionInvoker actionInvoker = webhookAction.getActionInvoker(processor, processor.getDefinition().getResolvedAction());
assertThat(actionInvoker).isNotNull().isInstanceOf(WebhookInvoker.class);
}
use of com.redhat.service.bridge.actions.ActionInvoker in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class KafkaTopicActionTest method getActionInvoker.
@Test
public void getActionInvoker() {
ProcessorDTO p = createProcessorWithActionForTopic(TOPIC_NAME);
ActionInvoker actionInvoker = kafkaTopicAction.getActionInvoker(p, p.getDefinition().getResolvedAction());
assertThat(actionInvoker).isNotNull();
verify(kafkaAdmin).listTopics();
}
Aggregations