• 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: Henrique Prange <email@hidden>
  • Date: Fri, 27 Jul 2012 19:21:48 -0300

Hi Ramsey,

On 27/07/2012, at 17:48, Ramsey Gurley wrote:

> 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.
>

The ERXApplication initialization is not required to run WOUnit test cases. The WOUnit framework is responsible for loading the required models (you have to specify the names of the required models when creating the MockEditingContext). For instance:

@Rule
public MockEditingContext ec = new MockEditingContext("MyModel");

This statement creates a MockEditingContext loading the model named MyModel.

> 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
>

Interesting. Thanks for sharing.

Cheers,

Henrique
 _______________________________________________
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: hafid ouazib <email@hidden>
References: 
 >wounit: cannot load model (From: hafid ouazib <email@hidden>)
 >Re: wounit: cannot load model (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: wounit: cannot load model
  • Next by Date: Re: Is it possible to access the displayGroup of an embedded list page?
  • Previous by thread: Re: wounit: cannot load model
  • Next by thread: Re: wounit: cannot load model
  • Index(es):
    • Date
    • Thread