如何模拟类型转换的对象?

时间:2018-08-02 11:48:58

标签: java mockito

public class Details extends SubDetails{

}

public String getString(Details details){
    SubDetails subDetails = (SubDetails) details;
}

在上述情况下如何模拟类型转换?

0 个答案:

没有答案