Re: Mock Object and CalitkoMocks

Hi Petr,

I’ve read the Mock objects and CalitkoMocks documentation and I must say it’s very good written and it was really enjoyable reading!

Thanks! Glad to hear that!

I’ve no experience with mocks and I’ve to admit that I’ve never heard of them before. For the first time I saw them used in the calitko sources and I was wondering what improvements could it brought to the software development. Now I’ve created a better image of what they do and thanks to your examples in CalitkoMocks I was (hopefully) able to understand the basic principle of mocks. But the only way how to get to know them better is actually to start working with them so I’m looking forward to try them myself (perhaps when we’ll testing BitTorrent communication with trackers)!

Yes, we will use mocks for that! The bencoded dictionary containing the tracker response is contained in the body of an HTTP response message. This means we would probably need to write something like PacketBuffer but for HTTP messages. Then we could have a ClientTrackerSession using this new buffer class to read the tracker HTML response for example.

But first I’ll try to review the code in Protocols/Generics as you’ve suggested and I’m sure that there is a lot of examples I can learn from (and possibly suggest some ideas to the current design/code).

Great! I’ll be expecting comments then!

Btw I’ve corrected some typing errors but as I’ve written in the comments - feel free to revert anything I’ve done.

Thanks for the corrections! I don’t agree with all, so some I will revert but it’s great you’re not afraid to change stuff :-).

Best regards,

Peter

Would you like to post a relpy?


This post is a reply to:
Re: Mock Object and CalitkoMocks
Hi Peter, I've read the Mock objects and CalitkoMocks documentation and I must say it's very good written and it was really enjoyable reading! I've no experience with mocks and (more...)

No follow-ups yet.