jeffz_2002 | 1 Jun 2007 01:09
Picon
Favicon

Re: TDD and WeakReferences

Hi Rick.  When I was testing my weak references (I'm assuming you're 
testing to make sure they're garbage collected correctly), I just had 
the objects increment a counter when created and decrement when 
destroyed, and would check the counter value (a class variable).

If you can't control garbage collection in your environment, you may 
need to use a separate test suite/program to check the memory allocated 
for that process before and after the test... which might be kind of 
tricky.

(sorry if this is too obvious and of no help)

Jeff

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/testdrivendevelopment/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/testdrivendevelopment/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:testdrivendevelopment-digest <at> yahoogroups.com 
    mailto:testdrivendevelopment-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    testdrivendevelopment-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Gmane