<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>JavaGeek.org - mockobjects tag</title>
  <link>http://javageek.org/tags/mockobjects/</link>
  <description>For the love of Java</description>
  <language>en</language>
  <copyright>Guillermo Castro</copyright>
  <lastBuildDate>Fri, 12 Nov 2010 16:04:24 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Unit Testing with Mock Objects (and Spring)</title>
    <link>http://javageek.org/2005/12/06/unit_testing_with_mock_objects_and_spring.html</link>
    
      
        <description>
          I was looking into some information on how to do &lt;a href=&#034;http://en.wikipedia.org/wiki/Unit_testing&#034;&gt;unit testing&lt;/a&gt; using &lt;a href=&#034;http://en.wikipedia.org/wiki/Mock_Object&#034;&gt;mock objects&lt;/a&gt;. Since I&#039;m using Spring, I&#039;m also considering this into the equation.&lt;br /&gt;&lt;br /&gt;So far, I have found some nice articles, like &lt;a href=&#034;http://www.shinetech.com/display/www/Unit+Testing+with+Mock+Objects&#034;&gt;this one&lt;/a&gt; linked from &lt;a href=&#034;http://www.theserverside.com/news/thread.tss?thread_id=30257&#034;&gt;TheServerSide&lt;/a&gt;, which talks about unit testing and mock objects in general, and provide some examples. &lt;br /&gt;&lt;br /&gt;I have also found several mock object libraries:&lt;br /&gt;&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;a href=&#034;http://www.easymock.org/&#034;&gt;EasyMock&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&#034;http://www.mockobjects.com/DynaMock.html&#034;&gt;DynaMock&lt;/a&gt;     &lt;/li&gt;
    &lt;li&gt;&lt;a href=&#034;http://jmock.codehaus.org/&#034;&gt;jMock&lt;/a&gt; (It&#039;s actually DynaMock redone)&lt;/li&gt;
&lt;/ul&gt;
I&#039;m wondering what people have done in this area. It seems that using mock objects is an ideal match for unit testing, and something that should be more thoroughly integrated.
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2005/12/06/unit_testing_with_mock_objects_and_spring.html&#034;
    dc:identifier=&#034;http://javageek.org/2005/12/06/unit_testing_with_mock_objects_and_spring.html&#034;
    dc:title=&#034;Unit Testing with Mock Objects (and Spring)&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1133881019927&amp;token=-3895614068184234618&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://javageek.org/2005/12/06/unit_testing_with_mock_objects_and_spring.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2005/12/06/unit_testing_with_mock_objects_and_spring.html</guid>
    <pubDate>Tue, 06 Dec 2005 14:56:59 GMT</pubDate>
  </item>
  
  </channel>
</rss>

