• 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 a framework's resources in WOUnit tests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing a framework's resources in WOUnit tests


  • Subject: Re: Accessing a framework's resources in WOUnit tests
  • From: Musall Maik <email@hidden>
  • Date: Wed, 09 Jul 2014 18:56:08 +0200

Oh, sorry for not making that clear.

It's involved in that everything works for the running application, but not from within unit tests. The effect that the pathURLForResourceNamed() call returns null happens only in unit tests.

Maik


Am 09.07.2014 um 18:11 schrieb John Huss <email@hidden>:

Sorry, how is WOUnit involved? 


On Wed, Jul 9, 2014 at 10:09 AM, Musall Maik <email@hidden> wrote:
Hi,

I have an application that uses a few custom frameworks. When I use

WOResourceManager resourceManager = WOApplication.application().resourceManager();
URL url = "" "foo.dat", null, null );

from within the main application, I get a proper URL to my resource file. But when I use 

WOResourceManager resourceManager = WOApplication.application().resourceManager();
URL url = "" "bar.dat", "MyFramework", null );

with the second parameter (framework name) given, I only get back null. Regardless of whether
this is called from within the main application or from the framework's code itself.

Does anybody have a hint for me?

Thanks
Maik


 _______________________________________________
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


 _______________________________________________
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: 
 >Re: Accessing a framework's resources in WOUnit tests (From: John Huss <email@hidden>)

  • Prev by Date: Enums in D2W
  • Next by Date: Re: Enums in D2W
  • Previous by thread: Re: Accessing a framework's resources in WOUnit tests
  • Next by thread: Re: Accessing a framework's resources in WOUnit tests
  • Index(es):
    • Date
    • Thread