use of org.apache.rocketmq.connect.redis.processor.RedisEventListener in project rocketmq-externals by apache.
the class ListenerTest method testEventListenerRetry2.
@Test
public void testEventListenerRetry2() {
Config config = getConfig();
RedisEventProcessor processor = getExceptionProcessor(config);
EventListener eventListener = new RedisEventListener(config, processor);
KeyValuePair pair = new KeyStringValueString();
eventListener.onEvent(null, pair);
}
use of org.apache.rocketmq.connect.redis.processor.RedisEventListener in project rocketmq-externals by apache.
the class ListenerTest method testEventListenerConfigNull.
@Test
public void testEventListenerConfigNull() {
Exception ex = null;
try {
new RedisEventListener(null, processor);
} catch (IllegalArgumentException e) {
ex = e;
}
Assert.assertNotNull(ex);
}
use of org.apache.rocketmq.connect.redis.processor.RedisEventListener in project rocketmq-externals by apache.
the class ListenerTest method testEventListenerRetry1.
@Test
public void testEventListenerRetry1() {
Config config = getConfig();
RedisEventProcessor processor = getFailedProcessor(config);
EventListener eventListener = new RedisEventListener(config, processor);
KeyValuePair pair = new KeyStringValueString();
eventListener.onEvent(null, pair);
}
use of org.apache.rocketmq.connect.redis.processor.RedisEventListener in project rocketmq-externals by apache.
the class ListenerTest method testEventListener.
@Test
public void testEventListener() {
EventListener eventListener = new RedisEventListener(this.config, processor);
KeyValuePair pair = new KeyStringValueString();
eventListener.onEvent(null, pair);
}
Aggregations