Hi Wolverine,

On 12/23/06, wolverine my <[EMAIL PROTECTED]> wrote:

Hi!

I have written my own MessageDecoder and MessageEncoder.

Is it possible to unit test these two classes before the server and
client areready?


Well, it really doesn't have any differences from unit-testing usual java
objects.  You could create some mock objects and use them as parameters for
each call (e.g. decode()), and check the result (the content of
ProtocolDecoderOutput or return value).

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to