Skip to main content
Participant
June 18, 2010
Answered

Error when function defined as property of TestCase

  • June 18, 2010
  • 1 reply
  • 583 views

I'm finding that defining a test case property as a function data type causes some problems.

Here the test case.

package tests
{
    import flexunit.framework.Assert;
   
    public class TestExample
    {       
        public var exampleFn:Function;
       
        [Test]
        public function testExample():void
        {
            Assert.fail("Test method Not yet implemented");
        }
    }
}

Here's the eclipse error.

This seems to stop FlexUnit from working. Can no longer added any other test cases.

I'm running FB4 as a plug-in into Eclipse 3.5.2 OS X 10.6.3

This topic has been closed for replies.
Correct answer mlabriola

Thanks for the information. Could I have you post this bug in Adobe's Jira:

https://bugs.adobe.com/flex/

The people who write the Flash Builder plugin do not watch these forums, only those of us maintaining the FlexUnit framework and I want to make sure this bug gets attention. If you provide me the bug number, I can follow up on it as well.

Mike

1 reply

mlabriolaCorrect answer
Participating Frequently
June 18, 2010

Thanks for the information. Could I have you post this bug in Adobe's Jira:

https://bugs.adobe.com/flex/

The people who write the Flash Builder plugin do not watch these forums, only those of us maintaining the FlexUnit framework and I want to make sure this bug gets attention. If you provide me the bug number, I can follow up on it as well.

Mike

Participant
June 18, 2010

Just wrote up a JIRA ticket.