9 Replies Latest reply on Jun 24, 2010 3:53 PM by mlabriola

    overridden [Before] function doesn't get called in Flex4

    sanggpark

      Here's my setup

       

      TestBase.as

      public class TestBase

      {

           [Before(order=1)]

           public function setupBase():void {

                // base setup

           }

       

           [Before(order=2)]

           public function setupTest():void { }

      }

       

      Test.as

      public class Test

      {

           override public function setupTest():void

           {

                // test setup

           }

       

           [Test]

           public function sampleTest():void

           {     // test

           }

      }

       

      This set up used to work in Flex 3. But I recently started migrating to Flex 4 and now this test doesn't behave as expected. With Flex 3, setupBase gets called first, then setupTest, then sampleTest. But with Flex 4, setupTest doesn't get called at all. What has changed? Is there a fix for this?