• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: wounit: cannot load model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: wounit: cannot load model
      • From: Henrique Prange <email@hidden>
References: 
 >wounit: cannot load model (From: hafid ouazib <email@hidden>)

  • Prev by Date: Re: wounit: cannot load model
  • Next by Date: D2W Rules for Joda.LocalDate Edit
  • Previous by thread: Re: wounit: cannot load model
  • Next by thread: Re: wounit: cannot load model
  • Index(es):
    • Date
    • Thread