注入类的父方法调用的“ doNothing”

时间:2018-11-27 20:27:52

标签: unit-testing junit mockito powermock

是否可以对已注入的受测试者的父类的方法调用“ noNothing”? 当“ super.someMethod(fileName);”不做任何事情被称为

public class testclass{

@InjectMocks
private SomeClass testee;

@Override
protected void method(String fileName){
    super.someMethod(fileName);
    ...
}

0 个答案:

没有答案
相关问题