我有这个方法
public <T, R> R deepCopy(T source, R destination) {
beanMapper.map(source, destination);
return destination;
}
并想用不同的方法参数来模拟
mock.deepCopy(classA(), classB()).thenReturn(classB());
mock.deepCopy(classB(), classC()).thenReturn(classC());
但得到类转换异常。
30秒到达战场
相关分类