Using AsMock to mock a result being returned from a function is quite common, however, how would you mock behavior on a function which returns void ? When unit testing a class, if we mock its depen...
Share ideas that matter on the social web and experience
the benefits of curating the world's best content.
I don't have a Facebook, a Twitter or a LinkedIn account
Your new post is loading...
Using AsMock to mock a result being returned from a function is quite common, however, how would you mock behavior on a function which returns void ? When unit testing a class, if we mock its depen... No comment yet.
Sign up to comment
Delete the scoop?
Are you sure you want to delete this scoop?
Yes
No
Do you know how to navigate from a class to its test and back again or how to create a FlexUnit test quickly with IntelliJ IDEA 11? Let me tell you. Delete the scoop?
Are you sure you want to delete this scoop?
Yes
No
From
dougr.net
-
October 3, 2011 6:24 AM
Example of testing a model mutator (setter) in a Robotlegs application using FlexUnit. The test example illustrates how to setup and test that the model data was updated. Delete the scoop?
Are you sure you want to delete this scoop?
Yes
No
|
// three way to use mockolate. Thanks @angerelle for finding and sharing this.// Delete the scoop?
Are you sure you want to delete this scoop?
Yes
No
Maybe I missed this in the plethora of documentation of FlashBuilder 4.5, maybe it’s coming in the next free update but when I tried to run FlexUnit in the Flex Mobile Project, the IDE said FlexUnit is not supported in this version. Delete the scoop?
Are you sure you want to delete this scoop?
Yes
No
|



Your new post is loading...