<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Richard Vanhook&#039;s Blog</title>
	<atom:link href="http://richardvanhook.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://richardvanhook.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jan 2012 14:53:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Error Notifications in Apex by Personal Injury</title>
		<link>http://richardvanhook.com/2010/10/21/error-notifications-in-apex/comment-page-1/#comment-577</link>
		<dc:creator>Personal Injury</dc:creator>
		<pubDate>Fri, 06 Jan 2012 14:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=220#comment-577</guid>
		<description>&lt;strong&gt;Wikia...&lt;/strong&gt;

Wika linked to this website...</description>
		<content:encoded><![CDATA[<p><strong>Wikia&#8230;</strong></p>
<p>Wika linked to this website&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Error Notifications in Apex by Wood FLoors</title>
		<link>http://richardvanhook.com/2010/10/21/error-notifications-in-apex/comment-page-1/#comment-573</link>
		<dc:creator>Wood FLoors</dc:creator>
		<pubDate>Mon, 02 Jan 2012 14:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=220#comment-573</guid>
		<description>&lt;strong&gt;Looking around...&lt;/strong&gt;

I like to look around the web, often I will go to Stumble Upon and read and check stuff out...</description>
		<content:encoded><![CDATA[<p><strong>Looking around&#8230;</strong></p>
<p>I like to look around the web, often I will go to Stumble Upon and read and check stuff out&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Error Notifications in Apex by Webpage Design Norwich</title>
		<link>http://richardvanhook.com/2010/10/21/error-notifications-in-apex/comment-page-1/#comment-566</link>
		<dc:creator>Webpage Design Norwich</dc:creator>
		<pubDate>Mon, 26 Dec 2011 15:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=220#comment-566</guid>
		<description>&lt;strong&gt;Digg...&lt;/strong&gt;

While checking out DIGG yesterday I noticed this...</description>
		<content:encoded><![CDATA[<p><strong>Digg&#8230;</strong></p>
<p>While checking out DIGG yesterday I noticed this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Request for feedback:  &#8220;Unit Test&#8221; Custom Object idea by Ralph Callaway</title>
		<link>http://richardvanhook.com/2011/05/05/unit-test-custom-object-idea/comment-page-1/#comment-192</link>
		<dc:creator>Ralph Callaway</dc:creator>
		<pubDate>Sat, 07 May 2011 16:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=359#comment-192</guid>
		<description>Hey Richard, one heuristic approach I&#039;ve used (not ideal) as a fallback is to query the most recently created instance of the object type if the test version i created failed.

E.g.

public Account getTestAccount() {
  Account testAccount = new Account(name = &#039;test&#039;);
  try {
    insert testAccount;
    return testAccount;
  } catch(Exception) {
    return [select id from Account order by lastModifiedDate desc limit 1];
  }
}

Another option to consider would be to use a custom setting which for most intensive purposes behave like sobjects, but can&#039;t have validation rules defined for them.

A final option would be to choose to see if you can find a standard object that can be inserted but can&#039;t have validation rules defined against it.  Static Resources are one object that comes to mind, but I imagine there are others.

You&#039;re custom object approach makes complete sense, although I&#039;d worry about administrator&#039;s accidentally breaking it as you suggest.  IFIRC one of the original versions of CMSForce used a test custom object called aptly enough Test__c that was used in its test methods.  However administrator&#039;s had a tendency to delete the object (it was only referenced dynamically) blocking any future deployments (package was unmanaged).

At Dreamforce last year project management mentioned that test methods to side step validation rules and required fields were on the drawing boards but still in very earlier phases.  Hopefully they&#039;ll figure this out sooner than later although I&#039;m not holding my breath.

Hope things are going well over at EDL.  I still got a stack of cert assignments to work through if you ever get border ;).</description>
		<content:encoded><![CDATA[<p>Hey Richard, one heuristic approach I&#8217;ve used (not ideal) as a fallback is to query the most recently created instance of the object type if the test version i created failed.</p>
<p>E.g.</p>
<p>public Account getTestAccount() {<br />
  Account testAccount = new Account(name = &#8216;test&#8217;);<br />
  try {<br />
    insert testAccount;<br />
    return testAccount;<br />
  } catch(Exception) {<br />
    return [select id from Account order by lastModifiedDate desc limit 1];<br />
  }<br />
}</p>
<p>Another option to consider would be to use a custom setting which for most intensive purposes behave like sobjects, but can&#8217;t have validation rules defined for them.</p>
<p>A final option would be to choose to see if you can find a standard object that can be inserted but can&#8217;t have validation rules defined against it.  Static Resources are one object that comes to mind, but I imagine there are others.</p>
<p>You&#8217;re custom object approach makes complete sense, although I&#8217;d worry about administrator&#8217;s accidentally breaking it as you suggest.  IFIRC one of the original versions of CMSForce used a test custom object called aptly enough Test__c that was used in its test methods.  However administrator&#8217;s had a tendency to delete the object (it was only referenced dynamically) blocking any future deployments (package was unmanaged).</p>
<p>At Dreamforce last year project management mentioned that test methods to side step validation rules and required fields were on the drawing boards but still in very earlier phases.  Hopefully they&#8217;ll figure this out sooner than later although I&#8217;m not holding my breath.</p>
<p>Hope things are going well over at EDL.  I still got a stack of cert assignments to work through if you ever get border <img src='http://richardvanhook.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Request for feedback:  &#8220;Unit Test&#8221; Custom Object idea by Richard</title>
		<link>http://richardvanhook.com/2011/05/05/unit-test-custom-object-idea/comment-page-1/#comment-190</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 06 May 2011 13:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=359#comment-190</guid>
		<description>Apex-lang unit tests that reference Account or Contact would be rewritten to utilize a new custom object (call it Foo) included with apex-lang.  I guess someone could still add a required field to Foo post install; however, the chances of that are much less than someone adding a required field to Account or Contact.</description>
		<content:encoded><![CDATA[<p>Apex-lang unit tests that reference Account or Contact would be rewritten to utilize a new custom object (call it Foo) included with apex-lang.  I guess someone could still add a required field to Foo post install; however, the chances of that are much less than someone adding a required field to Account or Contact.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Request for feedback:  &#8220;Unit Test&#8221; Custom Object idea by Abhinav Gupta</title>
		<link>http://richardvanhook.com/2011/05/05/unit-test-custom-object-idea/comment-page-1/#comment-189</link>
		<dc:creator>Abhinav Gupta</dc:creator>
		<pubDate>Fri, 06 May 2011 07:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=359#comment-189</guid>
		<description>Seems interesting Richard ! but honestly I can&#039;t understand how this new custom object will help fixing the required fields problem. Can you add some more sun shine on that ?</description>
		<content:encoded><![CDATA[<p>Seems interesting Richard ! but honestly I can&#8217;t understand how this new custom object will help fixing the required fields problem. Can you add some more sun shine on that ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on apex-lang 1.17 released by Richard</title>
		<link>http://richardvanhook.com/2011/04/14/apex-lang-1-17-released/comment-page-1/#comment-188</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 05 May 2011 15:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=294#comment-188</guid>
		<description>You&#039;re the 2nd person to ask me that in last few days.  Seems like I need to.</description>
		<content:encoded><![CDATA[<p>You&#8217;re the 2nd person to ask me that in last few days.  Seems like I need to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on apex-lang 1.17 released by Alex S.</title>
		<link>http://richardvanhook.com/2011/04/14/apex-lang-1-17-released/comment-page-1/#comment-187</link>
		<dc:creator>Alex S.</dc:creator>
		<pubDate>Sat, 30 Apr 2011 02:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=294#comment-187</guid>
		<description>Thanks for the new release Richard!

Do you plan to post this library up on GitHub anytime soon?</description>
		<content:encoded><![CDATA[<p>Thanks for the new release Richard!</p>
<p>Do you plan to post this library up on GitHub anytime soon?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on apex-lang 1.17 released by MJ WIvell</title>
		<link>http://richardvanhook.com/2011/04/14/apex-lang-1-17-released/comment-page-1/#comment-181</link>
		<dc:creator>MJ WIvell</dc:creator>
		<pubDate>Wed, 20 Apr 2011 03:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.com/?p=294#comment-181</guid>
		<description>apex-lang rocks!  Richard mentioned he&#039;s &quot;Happy to announce . . .&quot;  

I call using apex-lang happy fun time.  

It makes life so much easier!  Keep up the good work!</description>
		<content:encoded><![CDATA[<p>apex-lang rocks!  Richard mentioned he&#8217;s &#8220;Happy to announce . . .&#8221;  </p>
<p>I call using apex-lang happy fun time.  </p>
<p>It makes life so much easier!  Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SOQL Builder by Carlo</title>
		<link>http://richardvanhook.com/2010/04/11/soql-builder/comment-page-1/#comment-180</link>
		<dc:creator>Carlo</dc:creator>
		<pubDate>Wed, 20 Apr 2011 00:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://richardvanhook.wordpress.com/?p=77#comment-180</guid>
		<description>Another thing I might add (although you might already have implemented it as you&#039;re working on the GROUP BY CUBE functionality) is that the latest version doesn&#039;t seem to allow mixing fields with aggregate functions.

e.g. SELECT Department__c, COUNT(id) FROM Consultant__c GROUP BY Department__c

Otherwise, thanks for coming up with this. I&#039;ve been using it a lot since I discovered it a few months ago.</description>
		<content:encoded><![CDATA[<p>Another thing I might add (although you might already have implemented it as you&#8217;re working on the GROUP BY CUBE functionality) is that the latest version doesn&#8217;t seem to allow mixing fields with aggregate functions.</p>
<p>e.g. SELECT Department__c, COUNT(id) FROM Consultant__c GROUP BY Department__c</p>
<p>Otherwise, thanks for coming up with this. I&#8217;ve been using it a lot since I discovered it a few months ago.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

