使用PowerMockito.whennew的时候,注解preparefortest里面的类需要是mock的new代码所在的类的对象

NoSuchKey

猜你喜欢

转载自www.cnblogs.com/nizuimeiabc1/p/12153148.html