• 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: Proper Wonder/App Initialization for testing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper Wonder/App Initialization for testing


  • Subject: Re: Proper Wonder/App Initialization for testing
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 21 Sep 2009 12:13:59 -0700


On Sep 21, 2009, at 8:55 AM, Greg Brown wrote:

Hi,

I converted an app to use Wonder, and I think my tests need do do something new so that all the Wonder stuff initializes properly.

This page:
http://wiki.objectstyle.org/confluence/display/WONDER/Integrate+Wonder+Into+an+Existing+Application

has nothing about tests ;>o

Unit type tests seem to run fine without initializing the wonder frameworks, but database type (dbuinit) tests probably need the wonder stuff to be properly initialized.

ERXExtensions has a bunch of initApp, initEOF, initialize methods, which one is generally best for testNG / dbuinit initializations? Or do I need something like an initApp followed by a initEOF?

How do people handle this? a @BeforeSuite annotation to a method which calls some er.extensions.ERXExtensions.initFoo()?

In an non-Wonder app with similar startup logic, I need to call WOApplication.primeApplication(). See if that helps.



Chuck



_______________________________________________
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: Proper Wonder/App Initialization for testing
      • From: Mike Schrag <email@hidden>
References: 
 >Proper Wonder/App Initialization for testing (From: Greg Brown <email@hidden>)

  • Prev by Date: Re: Optimistic Locking?
  • Next by Date: Re: WebObjects and dependency injection (DI)
  • Previous by thread: Re: Proper Wonder/App Initialization for testing
  • Next by thread: Re: Proper Wonder/App Initialization for testing
  • Index(es):
    • Date
    • Thread