[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - refactor tests using INVM acceptors/connectors

jmesnil do-not-reply at jboss.com
Tue Feb 24 09:01:02 EST 2009


We have a lot of tests which uses the INVM acceptors. 
All these tests shares the same INVMRegistry singleton.

If a test fails and does not clean up its acceptor(s), all the subsequent tests which try to register an INVM acceptor with the same ID will fail.
1 failing test will result in hundred of failing tests making it very difficult to see regression, esp. since we have a few intermittent failing tests using INVM acceptors. 

I propose that we refactor every tests using INVM acceptor so that:
* in the setUp, we clean up the INVM registry (we don't care what happened before)
* in the tearDown, we check that the INVM registry size is set to 0

I'll add a InVMTestCase and use it to extend every tests using INVM acceptor.
wdyt?





View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212612#4212612

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



More information about the jboss-dev-forums mailing list