[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Testing the wireformat

timfox do-not-reply at jboss.com
Thu Nov 15 15:05:19 EST 2007


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#4105201

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105201



More information about the jboss-dev-forums mailing list