<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>chris clarke</title>
	<link>http://squadlimber.com/chris</link>
	<description>software development that works...or something</description>
	<pubDate>Mon, 07 Apr 2008 23:14:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>
	<language>en</language>
			<item>
		<title>Mocking Concrete Classes in JMock 2</title>
		<link>http://squadlimber.com/chris/2007/11/15/mocking-classes-in-jmock-2/</link>
		<comments>http://squadlimber.com/chris/2007/11/15/mocking-classes-in-jmock-2/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 10:44:22 +0000</pubDate>
		<dc:creator>chris.probably</dc:creator>
		
		<category>Tools n Stuff</category>

		<category>Testing</category>

		<category>Java</category>

		<guid isPermaLink="false">http://squadlimber.com/chris/2007/11/15/mocking-classes-in-jmock-2/</guid>
		<description><![CDATA[In JMock 1 you extended the cglib version of MockObjectTestCase but in JMock 2 its different.  You need to change the Imposteriser used by the Mockery:

Mockery context = new Mockery&#40;&#41;;
context.setImposteriser&#40;ClassImposteriser.INSTANCE&#41;;
&#160;
]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://www.jmock.org/">JMock 1</a> you extended the cglib version of MockObjectTestCase but in <a href="http://www.jmock.org/">JMock 2</a> its different.  You need to change the Imposteriser used by the Mockery:</p>
<div class="java" style="margin: 35px; border: 1px dashed #eee; font-family: Arial, Monaco, Verdana, monospace; padding: 1em; color: black; background: #fcfcfc; overflow: auto;"><br />
Mockery context = <span style="color: #000080;">new</span> Mockery<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />
context.<span style="color: #000000;">setImposteriser</span><span style="color: #000000;">&#40;</span>ClassImposteriser.<span style="color: #000000;">INSTANCE</span><span style="color: #000000;">&#41;</span>;<br />
&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://squadlimber.com/chris/2007/11/15/mocking-classes-in-jmock-2/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
