• 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: DBUnit configuration WOLips
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DBUnit configuration WOLips


  • Subject: Re: DBUnit configuration WOLips
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 30 Mar 2007 11:11:24 -0700

The same as any other resource. There is a menu option to Include as Resource under the WOLips context menu. Or (safer IMHO), edit woproject/resources.include.patternset and add one of these

**/small.xml
**/*.xml

The first is more specific, the second very generic, perhaps too generic.

Chuck

On Mar 30, 2007, at 11:00 AM, Michael Warner wrote:

I have a small xml file representing a dataset for DBUnit. During the build,
I believe that I should add this file to the /Content/Resources directory of the .woa


Can I add an ant task to the build.xml file that will do this in a handy way, then
use code like the following (obtained from Chuck Hill) in my test class:


protected IDataSet getDataSet() throws Exception {
InputStream dataSet = NSBundle.mainBundle ().inputStreamForResourcePath(name);
if (dataSet == null) {
throw new RuntimeException("Can't locate resource " + name + " in bundle " + NSBundle.mainBundle().name());
}
return new FlatXmlDataSet(dataSet);
}


What is a best-practice way to set all of this up?

Thanks,

Mike W.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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


References: 
 >DBUnit configuration WOLips (From: Michael Warner <email@hidden>)

  • Prev by Date: DBUnit configuration WOLips
  • Next by Date: Generate HTML from a WOComponent programmatically
  • Previous by thread: DBUnit configuration WOLips
  • Next by thread: Generate HTML from a WOComponent programmatically
  • Index(es):
    • Date
    • Thread