Hey Erno,

I'm using Mockolate with FlexMojos and so far very happy with it, Drew on
the message boards has been very helpful while I've been setting up my test
project.

I've added these dependencies up inside my parent POM:

        <dependency>
            <groupId>com.adobe.flexunit</groupId>
            <artifactId>flexunit</artifactId>
            <version>4.1.0-beta3</version>
            <type>swc</type>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>drewbourne</groupId>
            <artifactId>mockolate-as3</artifactId>
            <version>0.11.0</version>
            <classifier>as3</classifier>
            <type>swc</type>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>drewbourne</groupId>
            <artifactId>hamcrest-as3</artifactId>
            <version>1.1.3</version>
            <type>swc</type>
            <scope>test</scope>
        </dependency>

Unfortunately mockolate is not yet in Maven but Drew was saying he does have
plans to put them there real soon. It requires a later version of flexunit
and hamcrest which is why I've also added them. It's it's FlexUnit 4 you
don't need to create a separate runner, it'll do it all through your
metadata.

Take a look at the mockolate documentation, it's pretty readable.

Michael


On 23 August 2011 08:04, -Erno <[email protected]> wrote:

> Hi guys!
> I have spend last two days trying to get mockito-flex work in latest
> flexmojos.
> So before I lose my mind I ask couple questions from you if you can help
> me.
>
> - Does someone use mockito-flex and have working setup?
> - What mocking framework do you use if not mockito?
> - Why flexmojos create two imports to TestRunner.mxml e.g. "import
> com.mysite.MyTest; MyTest;" or is this bug?
>
> Thanks for help!
>
> --
> 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/

Reply via email to