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 <johnth...@gmail.com>:

> Sorry, how is WOUnit involved? 
> 
> 
> On Wed, Jul 9, 2014 at 10:09 AM, Musall Maik <m...@selbstdenker.ag> wrote:
> Hi,
> 
> I have an application that uses a few custom frameworks. When I use
> 
>       WOResourceManager resourceManager = 
> WOApplication.application().resourceManager();
>       URL url = resourceManager.pathURLForResourceNamed( "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 = resourceManager.pathURLForResourceNamed( "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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com
> 
> This email sent to johnth...@gmail.com
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to