[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Lots of largemessages

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Aug 12 10:44:00 EDT 2009


anonymous wrote : Not sure if that was the point you were trying to make.
  | 
  | But if so, then yes we need to set objects to null in teardown.


I didn't check / know about the order on Constructors... but yes.. the point I was trying to make is JUnit will hold one instance of the class per test method. 

So we must make sure we set fields to null on the test.


We could maybe make some simple and generic code on UnitTestCase::tearDown, using reflection. But we would need to make sure we all called super.tearDown at the end of our tearDown methods.



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

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



More information about the jboss-dev-forums mailing list