我想窥探一个函数,然后在函数完成/初始调用时执行回调。 下面是一个有点简单化,但显示了我需要完成: //send a spy to report on the soviet.GoldenEye method function
var james_bond = sinon.spy(soviet, "GoldenEye");
//tell M about the superWeapon getti
我有以下结构 public class A{...}
public class B extends A{
private C cObject;
private Object otherValue;
B(){
cObject = new C(this);
}
}
public class C{
private B bObjec