<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1973750947775262558.post5125054625731766576..comments</id><updated>2009-04-21T17:30:45.515-04:00</updated><category term='coldfusion'/><category term='BOF'/><category term='server configuration'/><category term='debugging'/><category term='jenkins'/><category term='SQL Server'/><category term='jira'/><category term='CFUnited'/><category term='Windows'/><category term='Security'/><category term='twicf'/><category term='timesavers'/><category term='MongoDB'/><category term='MAX'/><category term='user group'/><category term='TDD'/><category term='bcrypt'/><category term='BDD'/><category term='start'/><category term='CFUG'/><category term='RIAUnleashed'/><category term='ORM'/><category term='eclipse plugin'/><category term='Under  the Hood'/><category term='MXUnit Videos'/><category term='shortcuts'/><category term='Code Dojo'/><category term='OO Design'/><category term='cfeclipse dictionaries'/><category term='Hudson'/><category term='Humor'/><category term='eclipse'/><category term='Documentation'/><category term='closures'/><category term='announcements'/><category term='facebook'/><category term='launchy'/><category term='mxunit product update'/><category term='Continuous Integration'/><category term='cfml'/><category term='scala'/><category term='ant'/><category term='air'/><category term='java'/><category term='refactoring'/><category term='mylyn'/><category term='mxunit eclipse plugin'/><category term='webservices'/><category term='energy saving tips'/><category term='unit testing testing private methods'/><category term='Presentations'/><category term='Best Practices'/><category term='flex'/><category term='test automation'/><category term='LiveCycle'/><category term='android'/><category term='Learning'/><category term='cfant'/><category term='noise control'/><category term='mobile development'/><category term='drivers'/><category term='flash builder'/><category term='generics'/><category term='twitter'/><category term='cfeclipse'/><category term='testability'/><category term='coldfusion builder'/><category term='unit testing'/><category term='ria'/><category term='fun'/><category term='cfObjective'/><category term='blogging'/><category term='svfug'/><category term='conferences'/><category term='subversion'/><title type='text'>Comments on MXUnit Blog: Got Hard-to-Test code? We Want It!</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.mxunit.org/feeds/5125054625731766576/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1973750947775262558/5125054625731766576/comments/default'/><link rel='alternate' type='text/html' href='http://blog.mxunit.org/2009/03/got-hard-to-test-code-we-want-it.html'/><author><name>bill shelton</name><uri>http://www.blogger.com/profile/06624894387927690246</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_R-2JPB8crqk/TIdxkrbeOnI/AAAAAAAAAZw/hHv2ocuuyqA/S220/avatar-twitter-white-bg.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1973750947775262558.post-4719953945073322642</id><published>2009-04-21T17:30:00.000-04:00</published><updated>2009-04-21T17:30:00.000-04:00</updated><title type='text'>Yeah it begs that question. 

My problem comes dow...</title><content type='html'>Yeah it begs that question. &lt;br /&gt;&lt;br /&gt;My problem comes down to the fact that these objects (called Aspects in my framework) are not in a hierarchy. There are a bunch of objects in application scope that may use each other. Because they are all instantiated at the application start, wherever you are in the app you know you can use any one of them. &lt;br /&gt;&lt;br /&gt;Let's say you have a Contacts data access object and a Exporter object that writes files with all your contacts. In Exporter.cfc you can have a method writeContactFile() which calls APPLICATION.Contacts.getAll() ...&lt;br /&gt;&lt;br /&gt;How do you unit test writeContactFile() in Exporter.cfc ?&lt;br /&gt;&lt;br /&gt;In your unit test CFC you probably have to execute whatever it is that your code does on application start prior to any tests? I think this is where it got messy and I hit a wall.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1973750947775262558/5125054625731766576/comments/default/4719953945073322642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1973750947775262558/5125054625731766576/comments/default/4719953945073322642'/><link rel='alternate' type='text/html' href='http://blog.mxunit.org/2009/03/got-hard-to-test-code-we-want-it.html?showComment=1240349400000#c4719953945073322642' title=''/><author><name>Ben Margolis</name><uri>http://twitter.com/tangon</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.mxunit.org/2009/03/got-hard-to-test-code-we-want-it.html' ref='tag:blogger.com,1999:blog-1973750947775262558.post-5125054625731766576' source='http://www.blogger.com/feeds/1973750947775262558/posts/default/5125054625731766576' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2105088721'/></entry><entry><id>tag:blogger.com,1999:blog-1973750947775262558.post-357340471069804798</id><published>2009-04-21T17:06:00.000-04:00</published><updated>2009-04-21T17:06:00.000-04:00</updated><title type='text'>Sure! I'm sure Marc will chime in ... maybe send t...</title><content type='html'>Sure! I'm sure Marc will chime in ... maybe send the details to theguys at mxunit.org ?&lt;br /&gt;&lt;br /&gt;For me, this also begs the question of "How can you test an Application.cfc?"</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1973750947775262558/5125054625731766576/comments/default/357340471069804798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1973750947775262558/5125054625731766576/comments/default/357340471069804798'/><link rel='alternate' type='text/html' href='http://blog.mxunit.org/2009/03/got-hard-to-test-code-we-want-it.html?showComment=1240347960000#c357340471069804798' title=''/><author><name>billy</name><uri>http://www.blogger.com/profile/06624894387927690246</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17359140296736057249'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://4.bp.blogspot.com/_R-2JPB8crqk/SUEE7sNuL1I/AAAAAAAAAGU/-bo1g6-m8fk/S220/che3.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.mxunit.org/2009/03/got-hard-to-test-code-we-want-it.html' ref='tag:blogger.com,1999:blog-1973750947775262558.post-5125054625731766576' source='http://www.blogger.com/feeds/1973750947775262558/posts/default/5125054625731766576' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1094271333'/></entry><entry><id>tag:blogger.com,1999:blog-1973750947775262558.post-2583135473154722263</id><published>2009-04-21T16:46:00.000-04:00</published><updated>2009-04-21T16:46:00.000-04:00</updated><title type='text'>Are you still in need of hard-to-test code? I have...</title><content type='html'>Are you still in need of hard-to-test code? I have code that puts a lot of objects in application scope upon app startup. (They are singletons.)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1973750947775262558/5125054625731766576/comments/default/2583135473154722263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1973750947775262558/5125054625731766576/comments/default/2583135473154722263'/><link rel='alternate' type='text/html' href='http://blog.mxunit.org/2009/03/got-hard-to-test-code-we-want-it.html?showComment=1240346760000#c2583135473154722263' title=''/><author><name>Ben Margolis</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.mxunit.org/2009/03/got-hard-to-test-code-we-want-it.html' ref='tag:blogger.com,1999:blog-1973750947775262558.post-5125054625731766576' source='http://www.blogger.com/feeds/1973750947775262558/posts/default/5125054625731766576' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1449174348'/></entry></feed>
