You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by HASSANI Ismail <ha...@gmail.com> on 2010/02/02 12:55:44 UTC

Problem running unit tests in apache mina

Hi everyone :

I'am writing some unit test with junit to test a server written in form of a
state machine to test the communication protocol,it seems the in white box
and black box testing mode,exceptions are not catched on the same way,so the
state machine transitions that handle the exceptions are not identical.

The server does not have the same behaviour,when the exception is generated
while making the white box testing the server go not into the following
transition :

*@IoHandlerTransition(on = EXCEPTION_CAUGHT, in = MY_SESSION_OPEN, next
= MY_SESSION_ERROR)*

But in black box testing it does.

Does anyone already encounters this problem?

Thank you
Ismail