this is strange, I do have unit tests in a framework. when I check NSBundle.frameworkBundles() in the "@Before" method of my unit test, I get the complete list of frameworks with the own framework as first referred framework.
Do you use the latest version of wounit ? Markus Am 10.07.2014 um 08:49 schrieb Musall Maik <[email protected]>: > Hi, > > thanks for the suggestion. Turns out that none of my frameworks are loaded. > NSBundle.frameworkBundles() contains only the basic Java… bundles, nothing > else. Any idea? > > Maik > > > Am 09.07.2014 um 22:40 schrieb Markus Stoll, junidas GmbH > <[email protected]>: > >> Hi, >> >> I use >> >> NSBundle.bundleForClass(myclass.class).pathURLForResourcePath(_resource); >> >> when I need things to work from unit tests, too >> >> hope this helps, Markus >> >> Am 09.07.2014 um 18:56 schrieb Musall Maik <[email protected]>: >> >>> 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 protected]>: >>> >>>> Sorry, how is WOUnit involved? >>>> >>>> >>>> On Wed, Jul 9, 2014 at 10:09 AM, Musall Maik <[email protected]> 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 ([email protected]) >>>> Help/Unsubscribe/Update your Subscription: >>>> https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com >>>> >>>> This email sent to [email protected] >>>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/markus.stoll%40junidas.de >>> >>> This email sent to [email protected] >> >> -- >> Dr. Markus Stoll (Geschäftsführer) >> [email protected] >> >> junidas GmbH, Aixheimer Str. 12, 70619 Stuttgart >> Tel. +49 (711) 4599799-11, Fax +49 (711) 4599799-10 >> Geschäftsführer: Dr. Markus Stoll, Matthias Zepf >> Amtsgericht Stuttgart, HRB 21939 >> >> >> > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/markus.stoll%40junidas.de > > This email sent to [email protected]
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
