标签: junit mockito code-injection inject testcase
是否有一种方法可以在模仿中模拟此imgpath字符串?
imgpath
public class ClassA { @Inject @Optional String imgPath; private void getMethod() { String imagePath= imgPath; .... } }