I used to get the following errors while compiling my unit tests with
flexmojos 3.7.1 plugin using Flex 4:
[ERROR] ...\target\test-classes\TestRunner.mxml:
[11,-1] Interface method get automationOwner in namespace
mx.automation:IAutomationObject not implemented by class TestRunner.
[ERROR] ...\target\test-classes\TestRunner.mxml:
[11,-1] Interface method get automationParent in
namespacemx.automation:IAutomationObject not implemented by class
TestRunner.
...
Using the maven-dependency-plugin (dependency:tree), found that the
problem was due to the transitive dependency of flexmojos-unittest-
fluint to Flex framework 3.2.
...
[INFO] +- org.sonatype.flexmojos:flexmojos-unittest-fluint:swc:
3.7.1:test
[INFO] | +- org.sonatype.flexmojos:flexmojos-unittest-support:swc:
3.7.1:test
[INFO] | +- net.digitalprimates:fluint:swc:r269:test
[INFO] | \- com.adobe.flex.framework:playerglobal:swc:
9:3.2.0.3958:test
...
I could eliminate this problem by excluding the problematic
dependencies (see <exclusions> section below):
<dependency>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-unittest-fluint</artifactId>
<version>${flexmojos-plugin-version}</version>
<exclusions>
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
</exclusion>
</exclusions>
<type>swc</type>
<scope>test</scope>
</dependency>
I hope it helps, as I could not find any useful information to solve
this issue.
Antoine
On 5月20日, 午後9:56, Marvin Froeder <[email protected]> wrote:
> Please attach the console output from mvn -X clean install of any of my
> sample project.
>
> VELO
>
>
>
> On Thu, May 20, 2010 at 9:46 AM, Espen Skogen <[email protected]> wrote:
> > Hi,
>
> > yes, I have read the documentation - But this doesn't solve the
> > problem. In fact, using the provided POM and test code, it still
> > throws the same errors.
>
> > E
>
> > On May 20, 12:49 pm, Marvin Froeder <[email protected]> wrote:
>
> >https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+testshttps:/....
> > ..
>
> > > VELO
>
> > > On Thu, May 20, 2010 at 7:56 AM, Espen Skogen <[email protected]> wrote:
> > > > Dear all,
>
> > > > I have got my project compiling fine with FlexMojo, but I'm getting
> > > > some really weird errors on compiling the unit tests. The compiler is
> > > > complaining that the automation libraries aren't implemented in the
> > > > TestRunner,.
>
> > > > I've had a look at the generated source for the TestRunner, and it
> > > > does not reference anything to do with automation. I'm somewhat at a
> > > > loss to see what's going on so any input would be appreciated.
>
> > > > Kind regards,
>
> > > > Espen Skogen
>
> > > > Its dependencies (if any) will NOT be available to the current build.
> > > > [INFO] Compiling test class: [AnnotatedTest, DefaultMarshallerTest]
> > > > [ERROR] C:\dev\workspaces\trunk\kaazing-rpc\target\test-classes
> > > > \TestRunner.mxml:
> > > > [11,-1] Interface method get automationOwner in namespace
> > > > mx.automation:IAutomat
> > > > ionObject not implemented by class TestRunner.
> > > > [ERROR] C:\dev\workspaces\trunk\kaazing-rpc\target\test-classes
> > > > \TestRunner.mxml:
> > > > [11,-1] Interface method get automationParent in namespace
> > > > mx.automation:IAutoma
> > > > tionObject not implemented by class TestRunner.
> > > > [ERROR] C:\dev\workspaces\trunk\kaazing-rpc\target\test-classes
> > > > \TestRunner.mxml:
> > > > [11,-1] Interface method get automationEnabled in namespace
> > > > mx.automation:IAutom
> > > > ationObject not implemented by class TestRunner.
> > > > [ERROR] C:\dev\workspaces\trunk\kaazing-rpc\target\test-classes
> > > > \TestRunner.mxml:
> > > > [11,-1] Interface method get automationVisible in namespace
> > > > mx.automation:IAutom
> > > > ationObject not implemented by class TestRunner.
> > > > [ERROR] C:\dev\workspaces\trunk\kaazing-rpc\target\test-classes
> > > > \TestRunner.mxml:
> > > > [11,-1] Interface method createAutomationIDPartWithRequiredProperties
> > > > in namespa
> > > > ce mx.automation:IAutomationObject not implemented by class
> > > > TestRunner.
> > > > [ERROR] C:\dev\workspaces\trunk\kaazing-rpc\target\test-classes
> > > > \TestRunner.mxml:
> > > > [11,-1] Interface method getAutomationChildren in namespace
> > > > mx.automation:IAutom
> > > > ationObject not implemented by class TestRunner.
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] Error compiling!
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] For more information, run Maven with the -e switch
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > [INFO] Total time: 22 seconds
> > > > [INFO] Finished at: Thu May 20 10:36:32 BST 2010
> > > > [INFO] Final Memory: 26M/166M
> > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > C:\dev\workspaces\trunk\kaazing-rpc>
>
> > > > ************************************************************
> > > > HSBC Bank plc may be solicited in the course of its placement efforts
> > > > for a new issue, by investment clients of the firm for whom the Bank
> > > > as a firm already provides other services. It may equally decide to
> > > > allocate to its own proprietary book or with an associate of HSBC
> > > > Group. This represents a potential conflict of interest. HSBC Bank plc
> > > > has internal arrangements designed to ensure that the firm would give
> > > > unbiased and full advice to the corporate finance client about the
> > > > valuation and pricing of the offering as well as internal systems,
> > > > controls and procedures to identify and manage conflicts of interest.
>
> > > > HSBC Bank plc
> > > > Registered Office: 8 Canada Square, London E14 5HQ, United Kingdom
> > > > Registered in England - Number 14259
> > > > Authorised and regulated by the Financial Services Authority.
> > > > ************************************************************
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Flex Mojos" group.
> > > > To post to this group, send email to [email protected]
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<flex-mojos%[email protected]>
> > <flex-mojos%2bunsubscr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/flex-mojos
>
> > > >http://flexmojos.sonatype.org/
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Flex Mojos" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<flex-mojos%[email protected]>
> > > For more options, visit this group athttp://
> > groups.google.com/group/flex-mojos
>
> > >http://flexmojos.sonatype.org/-Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Flex Mojos" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<flex-mojos%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/flex-mojos
>
> >http://flexmojos.sonatype.org/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group athttp://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/