John Morrison wrote:
Sylvain Wallez wrote:IANAL, but the mock classes are created without referring to the real classes. They just contain the declarations of methods actually used by our code, and are made abstract as far as possible.
So I propose that we _remove all the conditional compilation stuff_ and write mock classes where needed to ensure that _all_ source files are always compiled.+1 in general, my only missgivings are legal - where do we stand
Thoughts ?
creating 'mock' objects of somebody elses code that (I don't know
if this is a possibility) might be GPL (or other restricted licensing
agreement)?
Only thoses classes that are instanciated by our code need to be concrete class, and the methods body is then just a "throw new UnsupportedOperationException("this is a mock object);"
So it can be considered as a clean room reimplementation of a subset of the class public interface.
Any lawyer out there ?
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]