Re: WOUnit testing with partial entities

2014-02-21 Thread Henrique Prange
Hi Paul, The partial entities initialization could happen before some models are loaded. In this new version of WOUnit, the partial support is initialized after all models are completely loaded. Could you give it a try? You can download the latest version here [1].

Re: WOUnit testing with partial entities

2014-02-21 Thread Paul Hoadley
Hi Henrique, On 22/02/2014, at 1:14 PM, Henrique Prange hpra...@gmail.com wrote: The partial entities initialization could happen before some models are loaded. In this new version of WOUnit, the partial support is initialized after all models are completely loaded. Could you give it a

Re: WOUnit testing with partial entities

2014-02-20 Thread Henrique Prange
Hi Paul, I’ve pushed a few changes to the wounit-1.2.x branch (including the partials fix). The version 1.2.3-SNAPSHOT contains the latest fixes for WOUnit 1.2.2. You can add the Maven dependency: dependency groupIdcom.wounit/groupId artifactIdwounit/artifactId

Re: WOUnit testing with partial entities

2014-02-20 Thread Paul Hoadley
Hi Henrique, On 21/02/2014, at 1:35 PM, Henrique Prange hpra...@gmail.com wrote: Does it work for you? As soon as you validate this SNAPSHOT I’m going to cut the 1.2.3 release. Unfortunately, no change. To give you a little more detail, I have a base class User in a framework, and an

Re: WOUnit testing with partial entities

2014-02-20 Thread Paul Hoadley
On 21/02/2014, at 3:40 PM, Paul Hoadley pa...@logicsquad.net wrote: If what I'm trying to describe isn't clear, I'd be happy to put together a minimal test project—let me know. I've sent you a test project off-list. Let me know what you think is going on. -- Paul Hoadley

Re: WOUnit testing with partial entities

2014-02-19 Thread Paul Hoadley
On 03/02/2014, at 2:30 PM, Paul Hoadley pa...@logicsquad.net wrote: [1]https://dl.dropboxusercontent.com/u/9599580/wounit-1.3-SNAPSHOT-3.jar I'm having some ongoing minor issues testing partial entities with WOUnit. Before I jump in and describe the problem in depth, is that snapshot above

Re: WOUnit testing with partial entities

2014-02-19 Thread Henrique Prange
, at 2:30 PM, Paul Hoadley pa...@logicsquad.net wrote: [1]https://dl.dropboxusercontent.com/u/9599580/wounit-1.3-SNAPSHOT-3.jar I'm having some ongoing minor issues testing partial entities with WOUnit. Before I jump in and describe the problem in depth, is that snapshot above the latest

Re: WOUnit testing with partial entities

2014-02-19 Thread Paul Hoadley
On 20/02/2014, at 3:56 AM, Henrique Prange hpra...@gmail.com wrote: I have to push some changes to GitHub (including the partials solution). I’m trying to find some time this week. I’ll let you know as soon as the changes are in the WOUnit repository. Thanks Henrique. -- Paul Hoadley

Re: WOUnit testing with partial entities

2014-02-02 Thread Paul Hoadley
and the logs look almost identical now. There's a new snapshot here [1] with the mentioned changes. Would you mind to try it? [1]https://dl.dropboxusercontent.com/u/9599580/wounit-1.3-SNAPSHOT-3.jar I'm having some ongoing minor issues testing partial entities with WOUnit. Before I jump

Re: WOUnit testing with partial entities

2013-08-22 Thread Paul Hoadley
Hi Henrique, On 22/08/2013, at 10:01 AM, Henrique Prange hpra...@gmail.com wrote: That is exactly the problem some WOUnit's users are reporting. The only way I was able to reproduce this kind of issue in my own environment was by turning the unit tests execution parallel. Anyway, this

Re: WOUnit testing with partial entities

2013-08-22 Thread Fabian Peters
Hi Henrique, I get the same exception, but only once in a while (one in ten builds or so) and only when jenkins is running the tests via maven. When running the tests from eclipse, everything's fine. There does seem to be some sort of timing or concurrency problem. Fabian Am 22.08.2013 um

Re: WOUnit testing with partial entities

2013-08-21 Thread Henrique Prange
Hi Paul, That is exactly the problem some WOUnit's users are reporting. The only way I was able to reproduce this kind of issue in my own environment was by turning the unit tests execution parallel. Anyway, this causes me problems even with WOUnit 1.2. :( So, I added a lot of logs and

RE: WOUnit testing with partial entities

2013-08-19 Thread Martin B
for a solution to this for weeks, any help would be appreciated. Thanks! Martin Subject: Re: WOUnit testing with partial entities From: pa...@logicsquad.net Date: Sat, 17 Aug 2013 20:59:57 +0930 To: hpra...@gmail.com CC: webobjects-dev@lists.apple.com Hi Henrique, On 02/08/2013, at 9:08 AM

Re: WOUnit testing with partial entities

2013-08-17 Thread Paul Hoadley
Hi Henrique, On 02/08/2013, at 9:08 AM, Henrique Prange hpra...@gmail.com wrote: Good to hear. I'm trying to solve another problem that seems related to the EOF initialization. I'm going to release a new version of WOUnit during the weekend (solving the other problem or not). Just out

Re: WOUnit testing with partial entities

2013-08-01 Thread Henrique Prange
Hi Paul, Good to hear. I'm trying to solve another problem that seems related to the EOF initialization. I'm going to release a new version of WOUnit during the weekend (solving the other problem or not). Cheers, Henrique On 28/07/2013, at 04:07, Paul Hoadley pa...@logicsquad.net wrote:

Re: WOUnit testing with partial entities

2013-07-28 Thread Paul Hoadley
Hi Henrique, On 28/07/2013, at 11:58 AM, Henrique Prange hpra...@gmail.com wrote: Looks like WOUnit isn't doing the required initialization to make partial entities work. I've improved the way EOF is initialized in WOUnit to mimic the way Wonder initializes it. Could you try this version

Re: WOUnit testing with partial entities

2013-07-27 Thread Henrique Prange
Hi Paul, Looks like WOUnit isn't doing the required initialization to make partial entities work. I've improved the way EOF is initialized in WOUnit to mimic the way Wonder initializes it. Could you try this version [1] of WOUnit. Does it fix the problem with your tests?

WOUnit testing with partial entities

2013-07-25 Thread Paul Hoadley
Hi Henrique, I want to write some WOUnit tests for a class that extends ERXPartialGenericRecord—that is, a base entity in the partial entities terminology. I have a simple User class in a model called Ident: public class UserTest { @Rule public MockEditingContext ec = new