Jeff.
-Original Message-
From: Carsten Ziegeler [mailto:cziege...@apache.org]
Sent: 07 December 2011 10:29
To: dev@sling.apache.org
Subject: Re: Backwards compatibility in Mocks: how far to go?
Hi,
I'm not against enhancing the current mocks, however I ran into
similar problems
Hi,
I'm not against enhancing the current mocks, however I ran into
similar problems as you and decided to copy the code or create new
mocks. This reduces dependencies and ensures that the mock really
behaves as you expect.
In addition I prefer using jmock (or similar libs) to create mocks on the
We've got some Mock... classes in org.apache.sling.commons.testing.
Generally speaking, these mock the methods the original author needed, and
return null/false for all the rest.
However, there comes a time when someone else needs a Mock of the same class,
but with a few more of the methods imp