Hi, I'm trying to setup the flexunit4 asmock test runner.  The guide is
here:

http://sourceforge.net/apps/mediawiki/asmock/index.php?title=Installation#Flex_Unit_4

So, my test case starts like this:

[RunWith("asmock.integration.flexunit.ASMockClassRunner")]
[Mock("tracer.IView")]
public class TracerPresenterTest
{
              ....

My flexmojos configuration is pasted below.  I added an explicit dependency
on the asmock swc's and I added an <import> for the class, but when I run
the test I get:

[ERROR] Unable to resolve a class for include:
asmock.integration.flexunit:ASMockClassRunner.

Any ideas?

Regards,
Davis

<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>3.4.0.9271</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>net.sf.asmock</groupId>
<artifactId>asmock</artifactId>
<version>0.9</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sf.asmock</groupId>
<artifactId>asmock-flexunit4</artifactId>
<version>0.9</version>
<type>swc</type>
<scope>test</scope>
</dependency>
</dependencies>
<version>${flex.version}</version>
<extensions>true</extensions>
<configuration>
<locales>
<locale>en_US</locale>
</locales>
<debug>true</debug>
<configurationReport>true</configurationReport>
<includes>
<include>asmock.integration.flexunit.ASMockClassRunner</include>
</includes>
</configuration>
</plugin>

-- 
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?hl=en?hl=en

http://blog.flex-mojos.info/

Reply via email to