完成 config 模块的单元测试

This commit is contained in:
YunaiV
2021-03-06 13:05:13 +08:00
parent 72817a8632
commit 95857ace9a
6 changed files with 211 additions and 24 deletions

View File

@ -0,0 +1,22 @@
package cn.iocoder.dashboard.util.object;
import cn.hutool.core.util.ObjectUtil;
import java.util.function.Consumer;
/**
* Object 工具类
*
* @author 芋道源码
*/
public class ObjectUtils {
public static <T> T clone(T object, Consumer<T> consumer) {
T result = ObjectUtil.clone(object);
if (result != null) {
consumer.accept(result);
}
return result;
}
}