My guess is you or wounit or something hasn't inited the ERXApplication class 
and so no models. That's just a guess though. I've never used WOUnit.

I have a unit testing project template for junit testing frameworks on github 
that I use. It's modeled after the ERXTest app in wonder and has a nice little 
setup wizard to get you started with your first test class and suite:

https://github.com/nullterminated/ponder/tree/master/Test%20Application%20Template

You can see how to create a project with it here:

http://wiki.wocommunity.org/display/documentation/Custom+Project+Templates

Ramsey

On Jul 27, 2012, at 12:58 PM, hafid ouazib wrote:

> Hi,
> i'm trying to run unit tests using WOUNIT-1.2.1, inside Eclipse
> but I get the error: 
> 
> java.lang.IllegalArgumentException: Cannot load model named 'ModelName'
>     at 
> com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:196)
>     at 
> com.wounit.rules.AbstractEditingContextRule.<init>(AbstractEditingContextRule.java:104)
>     at com.wounit.rules.MockEditingContext.<init>(MockEditingContext.java:113)
>     at com.wounit.rules.MockEditingContext.<init>(MockEditingContext.java:124)
>     
> any Idea,
> thanks
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to