Not finding what you are looking for? Request a recipe!
Override the setUp() and tearDown() methods in TestCase.
Temporarily place the component on the display hierarchy and then test it.
Use the Antennae TestSuite generation tool.
Download and unpack the open-source Antennae templates and configure for a particular system.
Download and unpack the FlexUnit framework and include the flexunit.swc in the application's compilation path.
Create a class that extends TestCase and include one or more public methods whose name starts with test.
Create an application that uses a TestSuite instance and TestRunnerBase component to run the tests.
Use the addAsync() FlexUnit method.
Create a factory class that can generate required test data instances.
ActionScript 3 does not support private or protected constructors preventing common implementation techniques for the singleton pattern. By using a static initializer and a check in the constructor, it is possible to ensure only a single instance of a class is created.