>>>>> On Tue, 03 Feb 2004 20:09:25 -0500, "Parsons, David" <[EMAIL PROTECTED]> said:
>> Parsons, David wrote: >Using these dependencies, I have succeeded
>> in getting the maven reactor >to build the jars in the correct
>> order, i.e. B-interface; A; B-impl. >In order to do so, however, I
>> had to suppress the unit tests for >component A from running. This
>> is because they require that the B-impl >classes be on the
>> classpath, which is not described in the dependencies >(and cannot
>> be, since that would reintroduce a cycle).
>>
>> David,
>>
>> since you're testing A, B-impl shouldnot be required for those
>> tests. so cannot you use some dummy implementations of your
>> interfaces or some kind of simple mocks ?
>>
>> -- gd
> You're right. In this example I was really misusing the unit
> testing feature of maven to do a cross-component functional test.
> Instead, we've decided to write custom goals for our functional
> tests, and restrict unit tests to single components by using mocks
> or whatnot.
Yes, this is what I attempt to do also.
--
=====================================================================
Jeffrey D. Brekke [EMAIL PROTECTED]
Wisconsin, USA [EMAIL PROTECTED]
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]