• 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: Accessing resources in test case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing resources in test case


  • Subject: Re: Accessing resources in test case
  • From: Jean-François Veillette <email@hidden>
  • Date: Fri, 26 Jan 2007 07:53:11 -0500

look at NSBundle, it's the foundation equivalent of WOResourceManager.

- jfv

Le 07-01-26 à 05:57, Logi Helgu a écrit :

I have a unit test that needs to get data from a text file in my languge(
lproj ) folder and I'd like to set it up without an absolute path ( like
/Developer/workspace/PROJECT/LANGUAGE.lproj/FILE.txt ).


Since my test case is pure Java I don't have a running Application with the
ResouceManager and I'm using BufferedReader/FileReader with the absolute
path to the file to read its contents.


Any ideas how I can get the resource in my test case without the absolute
path, since I don't want the test to be dependent on the location of my
workspace.




    With well-being and veneration,
    Logi Helgu




Fyrirvari á tölvupósti / e-mail disclaimer
<a href="http://www.us.is/page/fyrirvari";>http://www.us.is/page/ fyrirvari</a>


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


This email sent to email@hidden

__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ 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: 
 >Accessing resources in test case (From: Logi Helgu <email@hidden>)

  • Prev by Date: Re: WOBuilder in the future of WO?
  • Next by Date: Re: WOBuilder in the future of WO?
  • Previous by thread: Accessing resources in test case
  • Next by thread: Any way to make ERXLocalizer work with UTF-8?
  • Index(es):
    • Date
    • Thread