Now that testing is on my mind, here's a suggestion for testing the new JBM remoting
code:
MINA is a third party component, so the unit tests shouldn't really test with the real
MINA.
Instead, abstract out a simple interface that represents the interface between our new
remoting code and MINA.
Our new remoting code then deals with that interface, not MINA directly.
Create a simple mock implementation of the interface which just forwards requests
responses directly from client->server or vice versa (no actual sockets required).
Create your unit tests using that mock implementation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105201#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...