Mockito : how to mock constructor parameter without calling its method

前端 未结 0 921
梦谈多话
梦谈多话 2021-01-19 01:40

I have a class like this:

class A extends Parent {

  B b;
  public A(B b) {
    super(b);
    this.b = b;
  }

  public void method() {
     b.something()
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题