Re: [qooxdoo-devel] Object mocks should be derived from the class of the objects they mock

2012-08-16 Thread thron7
Good point, please open a bug for this. T. On 08/16/2012 08:50 AM, Florin Jurcovici wrote: > Trying to inject a mock instead of the real dependency into a property > fails, if there is an instanceof-like check in place. This seriously > hampers the use of mocks in tests. This can be avoided if ob

[qooxdoo-devel] Object mocks should be derived from the class of the objects they mock

2012-08-15 Thread Florin Jurcovici
Trying to inject a mock instead of the real dependency into a property fails, if there is an instanceof-like check in place. This seriously hampers the use of mocks in tests. This can be avoided if object mocks are derived from the class of the object they mock. -- Rule of Diversity: Distrust all