Re: Bundle loading during unit testing outside Eclipse
Re: Bundle loading during unit testing outside Eclipse
- Subject: Re: Bundle loading during unit testing outside Eclipse
- From: Paul Hoadley <email@hidden>
- Date: Wed, 21 Sep 2011 11:25:40 +0930
On 21/09/2011, at 9:53 AM, Paul Hoadley wrote:
>>>> Are the frameworks embedded in that bundle?
>>>
>>> Yes.
>>
>> You could try loading them from there instead. Just grab all the paths to jar files under Contents/Frameworks.
>
> I'll try that shortly.
I added:
<fileset dir="${dest.dir}/${project.name}.woa/Contents/Frameworks">
<include name="**/*.jar" />
</fileset>
as a child of a <classpath> element in the <junit> task. It certainly picked up all the expected JARs (including JavaMemoryAdaptor) and threw them on the classpath, but I'm still not seeing the bundles loaded by NSBundle. NSBundle.frameworkBundles().count() still returns 9 on the command line, and 29 in Eclipse.
One thing I'm _not_ doing is any of the "app initialisation"-type things here:
http://wiki.objectstyle.org/confluence/display/WO/Testing-JUnit+and+TestNG
Nor am I extending ERXTestCase. I'm just following Henrique's samples here:
http://hprange.github.com/wounit/usage.html
(Henrique—I assume neither of those things above are necessary, right?)
--
Paul.
http://logicsquad.net/
_______________________________________________
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