Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Any methods that contain a medadata tag of [BeforeClass] are executed.
  • Wiki Markup
    Once the [\[BeforeClass\]|FlexUnit BeforeClass] methods have finished, each method labeled as \[Test\] is sequenced with all methods that contain [\[Before\]|FlexClientFlexUnit Before] and [\[After\]|FlexClientFlexUnit After] and variables with [\[Rule\]|FlexClientFlexUnit Rule] metadata tags Before each test, all class variables marked as [\[Rule\]|FlexClientFlexUnit Rule] will be executed followed by all methods marked as a [\[Before\]|FlexClientFlexUnit 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\]|FlexClientFlexUnit Rule] will execute followed by all methods marked as an [\[After\]|FlexClientFlexUnit After] method.  This procedure will be repeated for all tests in the class.
  • 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.

...