[Development] Mock objects in Qt

Raja, Kushal kushal.raja at imagingsciences.com
Fri Jan 18 05:38:07 CET 2013


Hi,

I'm new to Qt and trying to use Test Driven Development for Qt project. Is it possible to create mock objects for abstract classes? Let's say I have an interface class to connect to database and implementations for various database. Is it possible to mock interface class causing function to return mock for a search?

Thanks,
Kusha;


Please be advised that this email may contain confidential 
information.  If you are not the intended recipient, please notify us 
by email by replying to the sender and delete this message.  The 
sender disclaims that the content of this email constitutes an offer 
to enter into, or the acceptance of, any agreement; provided that the 
foregoing does not invalidate the binding effect of any digital or 
other electronic reproduction of a manual signature that is included 
in any attachment.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130118/f88a8972/attachment.html>


More information about the Development mailing list