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
{{ message }}
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
I'm trying to mock some interfaces which return promises and it seems that mockolate and promise-as3 don't work well together. Typically I will have a method which returns a Promise, however when running the test I get the following error:
D:\libs\adobe\flex\sdk\4.6\bin\adl.exe -profile extendedDesktop D:\testApp\out\test\desktop\_flexunit-descriptor.xml D:\testApp\out\test\desktop
Player connected; session starting.
[Fault] exception, information=VerifyError: Error #1053: Illegal override of TestInterface600C55060B003CF6CD88EB5CFE69DFE741318F03 in mockolate.generated.TestInterface600C55060B003CF6CD88EB5CFE69DFE741318F03
I've included the proof source which is sufficient:
TestInterface
package {
import com.codecatalyst.promise.Promise;
public interface TestInterface {
function method() : void;
function method2() : Promise;
}
}
MockPromiseTest
package {
import mockolate.runner.MockolateRule;
public class MockPromiseTest {
[Rule]
public var mocks : MockolateRule = new MockolateRule();
[Mock]
public var intrfc : TestInterface;
[Test]
public function test() : void {
}
}
}
In the meantime I'll be making my own stubs however it would be nice to understand what is bothering mockolate (If you comment out method2 no errors occur).
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to mock some interfaces which return promises and it seems that mockolate and promise-as3 don't work well together. Typically I will have a method which returns a Promise, however when running the test I get the following error:
I've included the proof source which is sufficient:
TestInterface
MockPromiseTest
In the meantime I'll be making my own stubs however it would be nice to understand what is bothering mockolate (If you comment out method2 no errors occur).
Thanks in advance
The text was updated successfully, but these errors were encountered: