jmockit可注射测试参数未使用

时间:2019-01-08 20:16:25

标签: jmockit

为什么传递到@Injectable的{​​{1}}值不会“覆盖”设置为字段的值?

doTest()

测试课程...

public class Buzz {
  private final BuzzData buzzData;
  public Buzz(final BuzzData buzzData) {
    this.buzzData = buzzData;
  }
  BuzzData getBuzzData() { return buzzData; }
}
public class BuzzData {
  private String a;
  String getA() { return a; }
  void setA(String a) { this.a = a; }
}

我正在使用jmockit 1.44

0 个答案:

没有答案