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);
}
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);
}