mockolate
mockolate copied to clipboard
fake chocolate, mock objects and test spies for AS3
let the dns go on purpose?
Using the prebuilt Mockolate v0.12.4 from [here](https://github.com/drewbourne/mockolate/downloads), and the latest version of FlexUnit that comes with FlashBuilder Professional _(FlexUnit 4.1 I think)_. My code looks like this: ``` package MyTestPackage...
Hi Drew I try to use expect() instead received() and find the problem (received() works properly). Clean test below ``` actionscript package { import flash.events.Event; import flash.events.EventDispatcher; import mockolate.arg; import...
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." ``` as3...
I ran ant clean package after i did a git clone. I get the following errors Buildfile: /Users/simkimsia/Desktop/Adobe-AIR-App-Skinning/vendors/mockolate/build.xml [taskdef] Could not load definitions from resource flexTasks.tasks. It could not be...
The code below works in a **Flex Library Project** but fails in a **Flex Project**. ``` actionscript package flexUnitTests { import flash.net.FileReference; import flash.utils.ByteArray; import mockolate.runner.MockolateRunner; import mockolate.stub; import org.flexunit.assertThat;...
I just started using mockolate yesterday, and I'm enjoying the experience ;) I noticed something though. I had a test that was making a nice mockolate out of a spark.components.Form....
I have several subclasses of Bitmap I need to use for a complex pixel transformation, and I've run into the following problem: - If I use the `[Mock]` annotation only,...
For classes that extend Proxy Mockolate should intercept all the flash_proxy methods in order to allow use of `expect()`. Currently users have to do this: ``` AS3 mock(proxyObject).nsMethod(flash_proxy, "callProperty").args("actualMethodName", arg1,...