Search in sources :

Example 1 with Module

use of com.moilioncircle.redis.replicator.rdb.datatype.Module in project rocketmq-externals by apache.

the class RedisEventHandlerTest method testModule.

@Test
public void testModule() {
    KVEntry builder = handlerTest(RDB_TYPE_MODULE, () -> {
        Module module = new Module() {

            @Override
            public int hashCode() {
                return super.hashCode();
            }

            @Override
            public boolean equals(Object obj) {
                return super.equals(obj);
            }

            @Override
            protected Object clone() throws CloneNotSupportedException {
                return super.clone();
            }

            @Override
            public String toString() {
                return super.toString();
            }

            @Override
            protected void finalize() throws Throwable {
                super.finalize();
            }
        };
        return module;
    });
    Module va = (Module) builder.getValue();
    Assert.assertNotNull(va);
}
Also used : KVEntry(org.apache.rocketmq.connect.redis.pojo.KVEntry) Module(com.moilioncircle.redis.replicator.rdb.datatype.Module) Test(org.junit.Test)

Example 2 with Module

use of com.moilioncircle.redis.replicator.rdb.datatype.Module in project rocketmq-externals by apache.

the class RedisEventHandlerTest method testModule2.

@Test
public void testModule2() {
    KVEntry builder = handlerTest(RDB_TYPE_MODULE_2, () -> {
        Module module = new Module() {

            @Override
            public int hashCode() {
                return super.hashCode();
            }

            @Override
            public boolean equals(Object obj) {
                return super.equals(obj);
            }

            @Override
            protected Object clone() throws CloneNotSupportedException {
                return super.clone();
            }

            @Override
            public String toString() {
                return super.toString();
            }

            @Override
            protected void finalize() throws Throwable {
                super.finalize();
            }
        };
        return module;
    });
    Module va = (Module) builder.getValue();
    Assert.assertNotNull(va);
}
Also used : KVEntry(org.apache.rocketmq.connect.redis.pojo.KVEntry) Module(com.moilioncircle.redis.replicator.rdb.datatype.Module) Test(org.junit.Test)

Aggregations

Module (com.moilioncircle.redis.replicator.rdb.datatype.Module)2 KVEntry (org.apache.rocketmq.connect.redis.pojo.KVEntry)2 Test (org.junit.Test)2