...
- Any methods that contain a medadata tag of [BeforeClass] are executed.
Once the [\[BeforeClass\]|FlexUnit BeforeClass] methods have finished, each method labeled as \ [Test\] is sequenced with all methods that contain [\[Before\]|FlexClient Before] and [\[After\]|FlexClient After] and variables with [\[Rule\]|FlexClient Rule] metadata tags Before each test, all class variables marked as [\[Rule\]|FlexClient Rule] will be executed followed by all methods marked as a [\[Before\]|FlexClient Before] method. After this occurs, the actual test method will execute. After the test has finished, regardless of whether it succeeded or failed, all class variables marked as [\[Rule\]|FlexClient Rule] will execute followed by all methods marked as an [\[After\]|FlexClient After] method. This procedure will be repeated for all tests in the class.Wiki Markup - Any methods that contain a metadata tag of [AfterClass] are finally executed.
While running tests, the BlockFlexUnit4ClassRunner
uses two very important concepts: recursive sequences and decoration.
The first sequence that is used in the BlockFlexUnit4ClassRunner
is that of the before class sequence, the tests sequence, and after class sequence. Both the before class and after class sequences consist of the before class and after class methods. The tests sequence consists of a sequence of individual test sequences. Each individual test sequence contains the before sequence, the test, and the after sequence. The before and after sequences contain the before and after methods.
...