We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only unstubbed properties exhibit this bug. Methods and stubbed properties can be retrieved as expected.
The failing unit test will throw "Error #1065: Variable __AS3__vec::Vector. is not defined."
public class PartialMockVectorError { [Rule] public var mocks:MockolateRule = new MockolateRule(); [Mock(type="partial")] public var vectorWrapper:ClassWithVector; [Test] public function testShouldGetVector():void { //fails vectorWrapper.someList; } [Test] public function testStubbedPropertyShouldGetVector():void { //passes var vector:Vector.<String> = new Vector.<String>(); stub(vectorWrapper).getter("someList").returns(vector); assertTrue(vectorWrapper.someList === vector); } [Test] public function testMethodShouldGetVector():void { //passes vectorWrapper.retrieveSomeList(); } } public class ClassWithVector { private var _someList:Vector.<String>; public function ClassWithVector():void { _someList = new Vector.<String>(); } public function get someList():Vector.<String> { return _someList; } public function set someList(value:Vector.<String>):void { _someList = value; } public function retrieveSomeList():Vector.<String> { return _someList; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Only unstubbed properties exhibit this bug. Methods and stubbed properties can be retrieved as expected.
The failing unit test will throw "Error #1065: Variable __AS3__vec::Vector. is not defined."
The text was updated successfully, but these errors were encountered: