API Documentation | All Packages | All Classes | Index | Frames No Frames |
VisualTestEnvironmentBuilder

Package | org.fluint.uiImpersonation
Class | public class VisualTestEnvironmentBuilder
Inheritance | VisualTestEnvironmentBuilder Object
Implements | IVisualEnvironmentBuilder

TestEnvironment is a singleton class that allows tests to have visual components. The TestCase has a series of fascade methods such as addChild() and removeChild() which actually call those methods on this class.

Public Methods

| Method | Defined By
--- | --- | ---
|  | VisualTestEnvironmentBuilder(visualDisplayRoot:DisplayObjectContainer) Constructor | VisualTestEnvironmentBuilder
|  | buildVisualTestEnvironment():IVisualTestEnvironment Builds and returns an IVisualTestEnvironment based on the selected builder | VisualTestEnvironmentBuilder
|  | getInstance(visualDisplayRoot:DisplayObjectContainer = null):VisualTestEnvironmentBuilder [static] Returns a reference to the single instance of this class where all visual components will be created during testing. | VisualTestEnvironmentBuilder

Constructor Detail

VisualTestEnvironmentBuilder | () | Constructor

`public function VisualTestEnvironmentBuilder(visualDisplayRoot:DisplayObjectContainer)`

Constructor

Parameters

| `visualDisplayRoot:DisplayObjectContainer` — the system manager in flex or the app in ActionScript projects

Method Detail

buildVisualTestEnvironment | () | method

`public function buildVisualTestEnvironment():IVisualTestEnvironment`

Builds and returns an IVisualTestEnvironment based on the selected builder

Returns

| `IVisualTestEnvironment` — IVisualTestEnvironment

getInstance | () | method |

`public static function getInstance(visualDisplayRoot:DisplayObjectContainer = null):VisualTestEnvironmentBuilder`

Returns a reference to the single instance of this class where all visual components will be created during testing.

Parameters

| `visualDisplayRoot:DisplayObjectContainer` (default = `null`)``

Returns

| `VisualTestEnvironmentBuilder` — A reference to the TestEnvironment class.

Thu Apr 10 2014, 08:07 AM +10:00