Search in sources :

Example 1 with RedisSourceConnector

use of org.apache.rocketmq.connect.redis.connector.RedisSourceConnector in project rocketmq-externals by apache.

the class RedisSourceConnectorTest method testConnector.

@Test
public void testConnector() {
    RedisSourceConnector connector = new RedisSourceConnector();
    connector.verifyAndSetConfig(this.keyValue);
    Class cl = connector.taskClass();
    Assert.assertNotNull(cl);
    List<KeyValue> keyValues = connector.taskConfigs();
    Assert.assertNotNull(keyValues);
    connector.start();
    connector.pause();
    connector.resume();
    connector.stop();
}
Also used : DefaultKeyValue(io.openmessaging.internal.DefaultKeyValue) KeyValue(io.openmessaging.KeyValue) RedisSourceConnector(org.apache.rocketmq.connect.redis.connector.RedisSourceConnector) Test(org.junit.Test)

Aggregations

KeyValue (io.openmessaging.KeyValue)1 DefaultKeyValue (io.openmessaging.internal.DefaultKeyValue)1 RedisSourceConnector (org.apache.rocketmq.connect.redis.connector.RedisSourceConnector)1 Test (org.junit.Test)1