• 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
Problem calling NSBundle.bundleForClass from junit test code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem calling NSBundle.bundleForClass from junit test code


  • Subject: Problem calling NSBundle.bundleForClass from junit test code
  • From: Ricardo Parada <email@hidden>
  • Date: Tue, 18 Sep 2018 16:09:23 -0400

Hi all,

I am running a junit test case. The code there wants to load a file that
resides in the Resources folder from the framework bundle. That framework is
where the class I am testing and the junit class reside.

However, this returns null:

NSBundle bundle = NSBundle.bundleForClass(MyClass.class):

Any ideas?

Thanks
Ricardo Parada
 _______________________________________________
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

  • Prev by Date: Re: List of all Properties? Legacy EOModel with exposed keys.....
  • Next by Date: Re: HTTP Adaptor settings
  • Previous by thread: Re: List of all Properties? Legacy EOModel with exposed keys.....
  • Next by thread: Re: Flattened one-side M:N fails wildly with SharedEC
  • Index(es):
    • Date
    • Thread