james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: [mailet-base] Move mocks from test into main?
Date Sun, 09 Nov 2008 16:25:16 GMT
Robert Burrell Donkin ha scritto:
> On Sat, Nov 8, 2008 at 6:14 PM, Stefano Bagnara <apache@bago.org> wrote:
>> Robert Burrell Donkin ha scritto:
>>> ATM there are a number of concrete mocks contained in
>>> http://svn.apache.org/repos/asf/james/mailet/base/trunk/src/test/java/org/apache/james/test/mock/.
>>> they aren't unit tests and have no dependencies on junit but are
>>> useful when creating unit tests. i think they'd be better in main,
>>> probably repackaged into org.apache.mailet.base.mock.
>>>
>>> opinions?
>> I prefer to use tests because tests is where I look for similar things,
>> but I'm not strong on this and I've no objections to this, if this helps
>> you moving forward.
> 
> i'm agnostic
> 
> the packaging needs to be rationalised. not particularly sure about
> the best package: org.apache.mailet.base.test.mock?
> org.apache.mailet.base.mock? org.apache.mailet.base.test?

org.apache.mailet.base.test

"Mock" could be misleading as that package does not contain "proper"
mocks (as for Fowler summary:
http://martinfowler.com/bliki/TestDouble.html). Fowler (and many other)
would call most of that classes "Fake".

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message