Re: wounit: cannot load model
Re: wounit: cannot load model
- Subject: Re: wounit: cannot load model
- From: Ramsey Gurley <email@hidden>
- Date: Fri, 27 Jul 2012 13:48:35 -0700
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 Application Template
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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden