You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule should not run the test until the classes are prepared. Is there anything odd about the JSBridge class? Is it final, dynamic, etc? Could you include it (or at least its skeleton) so I can try to reproduce this.
Aside: When using the MockolateRule it will create the mock instances for you and verify them after the test. I have modified your example to the form I recommend (and need to document).
public class PanelOpenDelegateTest {
[Rule]
public var mocks:MockolateRule = new MockolateRule();
[Mock(type="strict")]
public var jsBridge:JSBridge;
[Test]
public function testPanelOpenJS() : void {
var delegate:PanelOpenDelegate = new PanelOpenDelegate();
mocks.mock(jsBridge).method("send").args("prOpenPanel",1,"CID");
delegate.jsBridge = jsBridge;
delegate.openPanelJS(1,"CID");
}
}
No description provided.
The text was updated successfully, but these errors were encountered: