VerifyError: Error #1053: Illegal override in mockolate.generated

101 views
Skip to first unread message

Bert Vandamme

unread,
Jan 7, 2014, 10:10:29 AM1/7/14
to mock...@googlegroups.com
Hi,

Since we upgraded the flex sdk in our application to 4.10 we've been running into Verify Errors while running unit tests that use mockolate.

They seem to occur when mocking an interface where a ByteArray is used in a method signature.

Example interface:

public interface IFileSystemHelper {

    function loadFileContents(path:String):ByteArray;

}


Example test class:

public class SomeTest {

    [Rule]
    public var mockolateRule:MockolateRule = new MockolateRule();

    [Mock]
    public var fileHelper:IFileSystemHelper;

    public function SomeTest() {
    }

    [Test]
    public function testMethod():void {
        // ...
    }
}

When compiling and running the test with flexmojos 6.0.1 the following error is thrown:

VerifyError: Error #1053: Illegal override of IFileSystemHelper8F2B5D281827800A824B85B588C6F2A08AE814ED in mockolate.generated.IFileSystemHelper8F2B5D281827800A824B85B588C6F2A08AE814ED

My initial suspicion was an sdk version problem with playerglobal (or airglobal in our case) so i recompiled mockolate (and flexunit) with sdk 4.10, without any result.

The only thing that seems to work is to remove the ByteArray type from the method signature... but that's not really an option :-) (and this has never been a problem before)

Is there anyone who has had a similar issue?

Thanks,

Bert


Balázs Szántó

unread,
Feb 4, 2014, 8:04:23 AM2/4/14
to mock...@googlegroups.com
Hi,

I have almost the same issue, but the problem appears randomly. Most of the times all the tests pass. Have you figured it out what could be the problem?

Balazs
Reply all
Reply to author
Forward
0 new messages