Flex Unit Test on Maia-10558

When I run a Flex Unit Test on Maia 10558, I get the following error:

Error:(55, 0) Access of undefined property className in package test.

This is the class, that has been built by Maia:

<local:LearnApplication____FlexUnitLauncherBase xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*"
                            implements="flexunit.framework.TestListener">
    <mx:Script><![CDATA[
        import flexunit.framework.AssertionFailedError;
        import flexunit.framework.Test;
        import flexunit.framework.TestCase;
        import flexunit.framework.TestResult;
        import flexunit.framework.TestSuite;

        import test.DummyUnitTest;


        private const PORT : Number = 07832;
        private const MODULE : String = "LearnApplication";

        protected override function getPort():Number {
            return PORT;
        }

        protected override function getModule():String {
            return MODULE;
        }

        protected override function runTests():void {
            var __testSuite__ : TestSuite = new TestSuite();

            __testSuite__.addTestSuite(test.DummyUnitTest);


            onRunStarted(__testSuite__.countTestCases());

            var testResult : TestResult = new TestResult();
            testResult.addListener(this);
            __testSuite__.runWithResult(testResult);
        }


        public function startTest(test:Test):void {
            onTestStarted(getTestInfo(test));
        }

        public function addError(test:Test, error:Error):void {
            onTestFailed(getTestInfo(test), error.message, error.getStackTrace());
        }

        public function addFailure(test:Test, error:AssertionFailedError):void {
            addError(test, error);
        }

        public function endTest(test:Test):void {
            onTestFinished(getTestInfo(test));
        }

        private static function getTestInfo(test: Test) : String {
            return test.className + "." + (test as TestCase).methodName;
        }

        ]]></mx:Script>
</local:LearnApplication____FlexUnitLauncherBase>

This is on Mac OS-X 10.5.7, latest Java 1.6.0_13-b03-211.

Thanks and Regards,
Peter

1 comment

Hello Peter,

Thanks for your feedback,

Please watch JIRA issue http://www.jetbrains.net/jira/browse/IDEADEV-38475 to get notified when the problem is resolved.

Regards,
Kirill

0

Please sign in to leave a comment.