• 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: JUnit for testing EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JUnit for testing EOs


  • Subject: Re: JUnit for testing EOs
  • From: Sam Barnum <email@hidden>
  • Date: Tue, 27 Nov 2007 17:19:59 -0800

I usually need to manually create the EOModel for test cases.

Programatically load the model into the default ModelGroup, like so:

static {
	try {
		EOModel model = new EOModel(new File("Web/Resources/MyProject.eomodeld").toURI().toURL());
		EOModelGroup.defaultGroup().addModel(model);
	} catch (MalformedURLException e) {
		throw new RuntimeException("Couldn't load EOModel", e);
	}
}
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: JUnit for testing EOs
      • From: Chuck Hill <email@hidden>
    • Re: JUnit for testing EOs
      • From: Paul Hoadley <email@hidden>
References: 
 >JUnit for testing EOs (From: Paul Hoadley <email@hidden>)
 >Re: JUnit for testing EOs (From: Chuck Hill <email@hidden>)
 >Re: JUnit for testing EOs (From: Paul Hoadley <email@hidden>)
 >Re: JUnit for testing EOs (From: Chuck Hill <email@hidden>)
 >Re: JUnit for testing EOs (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Deadlock [Fixed - we think!]
  • Next by Date: Re: JUnit for testing EOs
  • Previous by thread: Re: JUnit for testing EOs
  • Next by thread: Re: JUnit for testing EOs
  • Index(es):
    • Date
    • Thread