Skip to main content
Participant
January 5, 2011
Question

Multiple Tests with same class name but different packages

  • January 5, 2011
  • 1 reply
  • 768 views

this doesn't seem to work in FU 4.1RC1.

here is a code snippet from the TestRunner.mxml app that is produced:

import Pages.Company.Filter.TrayPresenterTest;

import Pages.Transaction.Filter.TrayPresenterTest;

         public function runTests() : void {

            var core : FlexUnitCore = new FlexUnitCore();

            core.addListener(new CIListener());

var request:Request = Request.qualifyClasses.apply(

null,

[TrayPresenterTest,TrayPresenterTest]

);

            core.run(request);

         }

i get the following error:

/Users/jlage/Development/workspace/hmcp/build/TestRunner.mxml: Error: Can not resolve a multiname reference unambiguously. Pages.Company.Filter:TrayPresenterTest (from /Users/jlage/Development/workspace/hmcp/src/test/flex/Pages/Company/Filter/TrayPresenterTest.as) and Pages.Transaction.Filter:TrayPresenterTest (from /Users/jlage/Development/workspace/hmcp/src/test/flex/Pages/Transaction/Filter/TrayPresenterTest.as) are available.

is there a way to force the generated app to use the fully qualified class name?  or do they have to be globally unique?

This topic has been closed for replies.

1 reply

Participating Frequently
January 5, 2011

Looks like a bug on our part to me. When we generate this, we should be using the FQCN for the entries in the array. Can you file a bug report on bugs.adobe.com? There is a flexunit project. Attach this and we will get a fix in the github branch in the next couple of days and make sure it is included in the release.

Mike

jefflageAuthor
Participant
January 5, 2011

done: https://bugs.adobe.com/jira/browse/FXU-147

Participating Frequently
January 5, 2011

Perfect.

Will update that issue as soon as there is a fix in the source repository.

Mike