Ah yes.. I'll look there to see what the differences are.
My tests do run if I launch my application as a WO application using a WO
application run config. I just was trying to get it to work with a Junit
Test run config. I'll look there more closely. I suspect it's just not
finding my model in my framework with the Junit Test run config.
Thanks.
___________________________
Brendan Duddridge
ClickSpace Interactive Inc.
Suite L100
239 - 10th Ave SE
Calgary, AB T2G 0V9
Canada
(403) 277-5591
http://www.clickspace.com/
> From: Harald Niesche <haral..heco.de>
> Organization: theCo.de AG
> Date: Sun, 05 Sep 2004 21:48:49 +0200
> To: Brendan Duddridge <brenda..lickspace.com>
> Cc: "woproject-de..bjectstyle.org" <woproject-dev@objectstyle.org>
> Subject: Re: WOUnitTest
>
> Brendan Duddridge wrote:
>> Hi Geoff,
>>
>> Thanks for the tip. I suspected that was the case, but the superclass of the
>> setup method in WOUTTestCase seems to have code that should load in the
>> models, but I don't think it goes far enough.
>
> I suspect your problem could also be that the JUnit launch config
> doesn't do everything the WO launch config does for you: working dir
> must be the .woa Folder (I think, I'd have to check the source code) and
> you need the Framework and Application Resources/Java folders on the
> classpath before everything else (the NSBundle stuff relies on this).
>
> Can you try launching your unit test (with a proper main() method) as a
> WO application?
>
> Harald
> PS: I posted a recipe for launching WO apps quite some time ago (before
> we had the WO Application launch config), but I couldn't find it just now.
>
This archive was generated by hypermail 2.0.0 : Sun Sep 05 2004 - 15:55:20 EDT