Does flexunit work with 4.50? On Mon, May 16, 2011 at 11:32 AM, Javier <[email protected]> wrote:
> Hello all. > I´m having problems with unit testing in flexmojos with flexunit4. > This is my pom > > <?xml version="1.0" encoding="UTF-8"?> > <!-- > > Copyright 2008 Marvin Herman Froeder > Licensed under the Apache License, Version 2.0 (the "License"); > you may not use this file except in compliance with the License. > You may obtain a copy of the License at > > http://www.apache.org/licenses/LICENSE-2.0 > > Unless required by applicable law or agreed to in writing, > software > distributed under the License is distributed on an "AS IS" BASIS, > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > See the License for the specific language governing permissions > and > limitations under the License. > > --> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// > www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// > maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > > <groupId>wip.com.juegos.cliente</groupId> > <artifactId>risk</artifactId> > <version>1.0-SNAPSHOT</version> > <packaging>swf</packaging> > > <name>Risk</name> > > <properties> > > <flashPlayer.command>D:\Desarrollo\flashplayer_10_sa_debug.exe</ > flashPlayer.command> > <flexmojos.version>3.8</flexmojos.version> > </properties> > <build> > <sourceDirectory>src/main/flex/wip/com/multijugador</ > sourceDirectory> > <testSourceDirectory>src/test/flex/wip/com/multijugador</ > testSourceDirectory> > <plugins> > <plugin> > > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <version>${flexmojos.version}</version> > <extensions>true</extensions> > > <configuration> > <testRunner> > <launcher> > > <flashplayerCommand>${flashPlayer.command}</flashplayerCommand> > </launcher> > </testRunner> > <!--<includeTestFiles> > <includeTestFile>*Test.as</includeTestFile> > </includeTestFiles>--> > <skipTest>true</skipTest> > </configuration> > > <dependencies> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>4.5.0.19786</version> > <type>pom</type> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>playerglobal</artifactId> > <version>10-3.3.0.4852</version> > <classifier></classifier> > <type>swc</type> > </dependency> > </dependencies> > > </plugin> > </plugins> > </build> > > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>4.5.0.19786</version> > <type>pom</type> > </dependency> > > <dependency> > <groupId>com.adobe.flexunit</groupId> > <artifactId>flexunit</artifactId> > <version>4.0-rc-1</version> > <type>swc</type> > <scope>test</scope> > </dependency> > > <dependency> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-unittest-flexunit4</artifactId> > <version>4.0-SNAPSHOT</version> > <type>swc</type> > <scope>test</scope> > </dependency> > > <dependency> > <groupId>wip.com</groupId> > <artifactId>commons</artifactId> > <version>2.0-SNAPSHOT</version> > <type>swc</type> > </dependency> > <dependency> > <groupId>wip.com</groupId> > <artifactId>commons</artifactId> > <version>1.0-SNAPSHOT</version> > <type>swc</type> > </dependency> > </dependencies> > > > <profiles> > <profile><!--https://docs.sonatype.org/pages/viewpage.action? > pageId=2949459--> > <id>m2e</id> > <activation> > <property> > <name>m2e.version</name> > </property> > </activation> > <build> > </build> > </profile> > </profiles> > </project> > > > and this is the error > > [ERROR] _TestRunner_mx_managers_SystemManager.as:[21,14] El mÚtodo de > interfaz addPreloadedRSL del espacio de nombres > mx.core:IFlexModuleFactory no se implementa con la clase > _TestRunner_mx_managers_SystemManager.public class > _TestRunner_mx_managers_SystemManager > [ERROR] _TestRunner_mx_managers_SystemManager.as:[21,14] El mÚtodo de > interfaz addPreloadedRSL del espacio de nombres > mx.core:IFlexModuleFactory no se implementa con la clase > _TestRunner_mx_managers_SystemManager.public class > _TestRunner_mx_managers_SystemManager > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 12.888s > [INFO] Finished at: Mon May 16 11:22:40 UYT 2011 > [INFO] Final Memory: 19M/289M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- > plugin:3.8:test-compile (default-test-compile) on project risk: Error > compiling! -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:test- > compile (default-test-compile) on project risk: Error compiling! > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: > 203) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: > 148) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: > 140) > at > > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: > 84) > at > > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: > 59) > at > > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java: > 183) > at > > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java: > 161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: > 316) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: > 153) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:134) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > 25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: > 290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: > 230) > at > > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java: > 409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: > 352) > Caused by: org.apache.maven.plugin.MojoExecutionException: Error > compiling! > at > > org.sonatype.flexmojos.compiler.AbstractCompilerMojo.callCompiler(AbstractCompilerMojo.java: > 1141) > at > > org.sonatype.flexmojos.compiler.TestCompileMojo.buildTest(TestCompileMojo.java: > 168) > at > org.sonatype.flexmojos.compiler.TestCompileMojo.run(TestCompileMojo.java: > 455) > at > > org.sonatype.flexmojos.compiler.TestCompileMojo.execute(TestCompileMojo.java: > 252) > at > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java: > 107) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: > 195) > ... 19 more > [ERROR] > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > > I apreciate some help in this. > Thanks in advance. > Javier sivack > > -- > 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/ > -- 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/
