[Interest] Mocking Network calls in code using QNetworkAccessManager

Shantanu Tushar shaan7in at gmail.com
Fri May 19 07:40:58 CEST 2017


Hi,

That works well, thanks!

On Thu, May 18, 2017 at 5:16 PM, Richard Moore <rich at kde.org> wrote:
> On 18 May 2017 at 11:35, Shantanu Tushar <shaan7in at gmail.com> wrote:
>>
>> Any recommendations on how to do I achieve the unit test without
>> needing network access?
>
>
> Here's an example:
>
> https://github.com/richmoore/qt-examples/tree/master/qcustomnetworkreply
>
> and a discussion of how it works:
> https://blogs.kde.org/2010/08/28/implementing-reusable-custom-qnetworkreply
>
> Regards
>
> Rich.



-- 
Shantanu Tushar    (UTC +0530)
shantanu.io



More information about the Interest mailing list