> andy law (RI) wrote on Thursday, January 25, 2007 1:47 PM:
>
> [snip]
>
>> Has anyone else done anything as complex (read: STUPID) as
>> this and can
>> anyone suggest any sensible, practical solutions?
>
> Use a dynamic mock implementation like jMock. With the CGLIB extension you
> may even mock classes not just interfaces (although that is an indicator
> for reconsidering the design) ...
>
> - Jörg

Sounds like a can of worms. You may find that you can seperate some of the
stuff out into API packages containing the interface definitions and any
static code that is always true, and one implementation package for each
binding (web service, database, file, mock). As Jörg says, you should
probably consider implementing Mock* using some majik like jMock or via
Proxy directly.

Matthew


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to