Mon, 13 Sep 2010 09:37:26 +0200 -n
Emmanuel Lecharny<[email protected]> írta:
Hello Emmanuel, Sorry for not being clear enough to outline my case! I
subclassed CumulativeProtocolDecoder. My decoder worked fine until
fragmentation happened in real life testing. Then, I have changed my
decoder to handle fragmentation and this works now in practice, too.
My question is: how to write a correct unit test for checking
fragmentation's case?
Ah...
Looking at your code, I think you took the correct approach : mocking
the session, and unit testing the decoder itself.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com