<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="0.92" xml:base="http://www.testingreflections.com">
<channel>
 <title>testingReflections.com - Mock Objects</title>
 <link>http://www.testingreflections.com/taxonomy/view/or/101</link>
 <description></description>
 <language>en</language>
<item>
 <title> Java mocking without dependency injection</title>
 <link>http://www.testingreflections.com/node/view/4168</link>
 <description>&lt;a href="http://digital-compulsion.blogspot.com/2006/09/java-mocking-without-injection-same.html"&gt;Interesting article&lt;/a&gt; about using bytecode manipulation to mock dependencies.</description>
<pubDate>Sat, 16 Sep 2006 18:42:29 -0500</pubDate></item>
<item>
 <title>Mocha - a new twist on mocking in Ruby</title>
 <link>http://www.testingreflections.com/node/view/4092</link>
 <description>&lt;a href="http://mocha.rubyforge.org/"&gt;Mocha&lt;/a&gt; is a library for mocking and stubbing within tests using a syntax like that of &lt;a href="http://www.jmock.org"&gt;JMock&lt;/a&gt; and &lt;a href="http://rubyforge.org/projects/schmock"&gt;SchMock&lt;/a&gt;. The main difference between this mocking library and others like &lt;a href="http://onestepback.org/software/flexmock"&gt;FlexMock&lt;/a&gt; and &lt;a href="http://rspec.rubyforge.org"&gt;RSpec&lt;/a&gt; is that it allows you to mock and stub methods on real (non-mock) classes and instances.</description>
<pubDate>Fri, 01 Sep 2006 13:02:37 -0500</pubDate></item>
<item>
 <title>Rhino.Mocks v. 2.0 Announced. Yes, it's a Mock Object Framework.</title>
 <link>http://www.testingreflections.com/node/view/2450</link>
 <description>&lt;p&gt;&lt;a href="http://www.ayende.com/Blog/"&gt;Ayende &lt;/a&gt;has &lt;a href="http://www.ayende.com/Blog/RhinoMocks20Released.aspx"&gt;announced&lt;/a&gt; that he's released &lt;a href="http://www.codeproject.com/useritems/Rhino_Mocks_Version_20.asp"&gt;Rhino.Mocks v. 2.0&lt;/a&gt;: his own version of what he'd like in a Mock Object framework. I haven't yet got a chance to try it out, but it certainly sounds interesting!&lt;/p&gt; &lt;p&gt;"Rhino.Mocks is an attempt to create easier way to build and use mock objects and allow better refactoring support from the current tools. It's a hybrid approach between the pure Record/Replay of &lt;a href="http://sourceforge.net/projects/easymocknet/"&gt;EasyMock.Net&lt;/a&gt;'s model and &lt;a href="http://www.nmock.org/"&gt;NMock&lt;/a&gt;'s expectation based model. Rhino.Mocks originated from &lt;a href="http://sourceforge.net/projects/easymocknet/"&gt;EasyMock.Net&lt;/a&gt; and attempt to improve on their model to create easy to use and power mocking framework. It's free for use and modification for free and commercial software.&lt;/p&gt;</description>
<pubDate>Mon, 04 Jul 2005 00:56:34 -0500</pubDate></item>
<item>
 <title>The Mock Objects elevator speech</title>
 <link>http://www.testingreflections.com/node/view/2445</link>
 <description>A friend asked me by email the other day :"So why do I need mock objects?" I came up with this in roughly 3 minutes so it's a bit rough, but it'll do to drive the point home, I hope. Note, that this does not really explain the *technical* side of it too much. Just the logic behind the concept. &amp;nbsp; Mock objects are there for when you need to replace or remove dependencies from code under test.  Let's say you have a class that manages user logins. Whenever a user login fails the class needs to report to a logger class, or maybe even an email class, or some remote web service to authenticate. If you want to write a test for the logic in the login class (an tests are just methods that call methods on the tested class, really) you want your test to run fast, and to run easily without too much fussing and configuration so that you can get fast feedback.</description>
<pubDate>Mon, 04 Jul 2005 00:57:30 -0500</pubDate></item>
<item>
 <title>Schmock: Ruby mock library</title>
 <link>http://www.testingreflections.com/node/view/2428</link>
 <description>Simple mock object implementation knocked together while developing a Ruby on Rails app. Draws from the jmock stable of mocking.</description>
<pubDate>Wed, 29 Jun 2005 05:57:35 -0500</pubDate></item>
<item>
 <title>Python Mock Library: mock objects for Python</title>
 <link>http://www.testingreflections.com/node/view/2400</link>
 <description>Mock object library for Python. This library enables the easy creation and use of Mock objects for Python unit testing. The Mock objects can contain expectations about how they are used, and can validate themselves against the class being mocked.</description>
<pubDate>Sun, 26 Jun 2005 13:21:47 -0500</pubDate></item>
<item>
 <title>Rhino Mocks: .NET mocking framework</title>
 <link>http://www.testingreflections.com/node/view/2398</link>
 <description>A dynamic mock object framework for the .Net platform. Its purpose is to ease testing by allowing the developer to create mock implementations of custom objects and verify the interactions using unit testing. Rhino.Mocks is an attempt to create easier way to build and use mock objects and allow better refactoring support from the current tools. It's a hybrid approach between the pure R</description>
<pubDate>Sun, 26 Jun 2005 13:22:27 -0500</pubDate></item>
<item>
 <title>FlexMock: mock objects for Ruby</title>
 <link>http://www.testingreflections.com/node/view/2306</link>
 <description>FlexMock is a simple mock object for unit testing in Ruby. The interface is simple, but still provides a good bit of flexibility.</description>
<pubDate>Sun, 12 Jun 2005 09:59:58 -0500</pubDate></item>
<item>
 <title>Setting Up VirtualMock in the Eclipse IDE</title>
 <link>http://www.testingreflections.com/node/view/2041</link>
 <description>One of the things I teach as part of &lt;a href="http://www.teamagile.com"&gt;Team Agile&lt;/a&gt; is how to do &lt;a href="http://www.testdriven.com"&gt;Test Driven Development &lt;/a&gt;and write unit tests in Java. Yes. This is .NET weblogs, but the following information is so scarce and hard to find I just have to post it. After a long time of trial and error trying to run a framework called "&lt;a href="http://www.virtualmock.org"&gt;VirtualMock&lt;/a&gt;" (which is similar to &lt;a href="http://www.typemock.com"&gt;TypeMock &lt;/a&gt;in .NET in its purposes). Anyway - it's impossible to figure out how to make the thing work under Eclipse - no documentation found on the net for this. Luckily, Eli Lopian of Amdocs finally found a way to make it work with the Eclipse IDE. He was kind enough to let me post the steps he used to make this happen so that future generations could use this practically non-existent documentation as they search it via Google: &amp;nbsp; &amp;nbsp; Hi, &amp;nbsp; Here are the instuctions for setting up using virtual mock in eclipse. &amp;nbsp; &lt;strong&gt;A.1. Setting Up VirtualMocks in eclipse&lt;/strong&gt; &amp;nbsp; Following is the method to set up virtual mocks in eclipse (3.0). &amp;nbsp; &lt;strong&gt;1. Install AJDT (The AspectJ Development Tool) and restart eclipse.&lt;/strong&gt; &amp;nbsp;</description>
<pubDate>Sat, 23 Apr 2005 11:59:27 -0500</pubDate></item>
<item>
 <title>Mock Objects for C++ 1.5.0 available</title>
 <link>http://www.testingreflections.com/node/view/1820</link>
 <description>[textile]"mockpp":http://mockpp.sourceforge.net/index-en.html is a platform independent unit testing framework for C++. Its goal is to facilitate developing unit tests in the spirit of "Mock Objects for Java" and jMock.</description>
<pubDate>Wed, 09 Mar 2005 15:23:16 -0600</pubDate></item>
<item>
 <title>MockCreator: Java Mock Generator</title>
 <link>http://www.testingreflections.com/node/view/1669</link>
 <description>When tests multiply, they often become too complex to support, since minor changes in code often require to alter a bunch of unit tests. MockCreator's special features (such as Dummy, Blocks and Accepts) are targeted to writing test code that knows as little as possible about the actual implementation, testing only logic.MockCreator is in use in large projects, featuring thousands of tests, and it helps users to reduce the pain of test maintenance.</description>
<pubDate>Thu, 17 Feb 2005 00:57:57 -0600</pubDate></item>
<item>
 <title>How Mock Objects Happened</title>
 <link>http://www.testingreflections.com/node/view/1589</link>
 <description>Mock Objects is a development technique that lets you unit test classes that you didn't think you could and helps you write better code whilst doing so. This article uses a simple example to show a compressed history of how the Mock Objects technique was discovered by refactoring from conventional unit tests, and what its advantages are.Author: Steve Freeman</description>
<pubDate>Fri, 04 Feb 2005 04:45:08 -0600</pubDate></item>
<item>
 <title>SnapDAL: data access layer for .NET code</title>
 <link>http://www.testingreflections.com/node/view/1323</link>
 <description>SnapDAL is a data access layer (DAL) for your .net code. It is designed to make programming against databases and other sources of data easier, with less code, and higher reliability than you could do on your own without lots of discipline. SnapDAL is built with the idea of helping you write testable data access code by support Mock Objects natively as a first class development tool.</description>
<pubDate>Fri, 17 Dec 2004 00:29:54 -0600</pubDate></item>
<item>
 <title>I changed my mind - Mock objects are wrong for database unit testing</title>
 <link>http://www.testingreflections.com/node/view/1279</link>
 <description>More than a year ago I wrote about the problems in database testing. I also &lt;A href="http://weblogs.asp.net/rosherove/archive/2003/09/30/29734.aspx"&gt;stated &lt;/a&gt;that I feel it's totally wrong to run your unit tests against a live test database, but instead you should be using mock objects to save you from all the trouble. Boy have things changed since then. I take back what I said. For a long time now I've been doing DB testing without mock objects, because I believe that's currently the best way to make sure you test data access logic &lt;strong&gt;and&lt;/strong&gt; integration with the database procedures and views.</description>
<pubDate>Sun, 12 Dec 2004 02:54:17 -0600</pubDate></item>
<item>
 <title>Unit Testing with Mock Objects</title>
 <link>http://www.testingreflections.com/node/view/1275</link>
 <description>Recently on a medium-sized project I did a lot of work developing unit tests using the 'Mock Objects' pattern. Whilst I had used this pattern before, this was the largest piece of work to-date. In doing so I learnt a lot about unit testing and believe I went to the very limit of what can be tested.This page and its children talk about unit testing with the Mock Objects pattern. In particular, it covers what Mock Objects are, what tools I have used, and important lessons I have learnt along the way.</description>
<pubDate>Sun, 12 Dec 2004 02:56:42 -0600</pubDate></item>
</channel>
</rss>
