<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dz="http://www.developerzone.com/modules/dz/1.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
 <title>DZone - Comments for &quot;Java and Mocking&quot;</title>
 <link>http://www.dzone.com/news/java-and-mocking</link>
 <description>Comments for &quot;Java and Mocking&quot;</description>
 <language>en</language>
<item>
 <title>You might want to look at a</title>
 <link>http://www.dzone.com/news/java-and-mocking#comment-4723</link>
 <description>&lt;!--paging_filter--&gt;You might want to look at a more powerful mocking tool, e.g. jmockit.</description>
 <pubDate>Sat, 05 Jul 2008 20:58:18 -0400</pubDate>
 <dc:creator>jessh</dc:creator>
 <guid isPermaLink="false">comment 4723 at http://zones.dzone.com</guid>
</item>
<item>
 <title>Oh sorry, I forgot to see</title>
 <link>http://www.dzone.com/news/java-and-mocking#comment-4721</link>
 <description>&lt;!--paging_filter--&gt;Oh sorry, I forgot to see that this was posted in the ruby section. Forget my advice then.</description>
 <pubDate>Sat, 05 Jul 2008 08:21:37 -0400</pubDate>
 <dc:creator>sakuraba</dc:creator>
 <guid isPermaLink="false">comment 4721 at http://www.dzone.com</guid>
</item>
<item>
 <title>Sorry for the indentation,</title>
 <link>http://www.dzone.com/news/java-and-mocking#comment-4719</link>
 <description>&lt;!--paging_filter--&gt;Sorry for the indentation, but either it is impossible to post correctly intended code with this editor or I am way too &amp;quot;ease-of-use&amp;quot;-spoiled from being a Mac-User to actually fight my way through this.</description>
 <pubDate>Sat, 05 Jul 2008 04:51:06 -0400</pubDate>
 <dc:creator>sakuraba</dc:creator>
 <guid isPermaLink="false">comment 4719 at http://www.dzone.com</guid>
</item>
<item>
 <title>How about combining a nice</title>
 <link>http://www.dzone.com/news/java-and-mocking#comment-4718</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;How about combining a nice mocking language with your java classes with ... Groovy?&lt;/p&gt;&lt;pre class=&quot;groovy&quot;&gt;def mock = new MockFor(YourJava.class)&lt;br /&gt;class Example {&lt;br /&gt;  def bla = { return new YourJavaClass().someField }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;def mock = new MockFor(YourJavaClass)&lt;br /&gt;&lt;br /&gt;mock.demand.getSomeField { &amp;quot;two&amp;quot; }&lt;br /&gt;mock.use {&lt;br /&gt;   def c = new Example()&lt;br /&gt;   assert    c. bla() == &amp;quot;two&amp;quot; &lt;br /&gt;}&lt;/pre&gt;</description>
 <pubDate>Sat, 05 Jul 2008 04:31:00 -0400</pubDate>
 <dc:creator>sakuraba</dc:creator>
 <guid isPermaLink="false">comment 4718 at http://www.dzone.com</guid>
</item>
</channel>
</rss>
