<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-37219997</id><updated>2011-04-22T02:53:11.042+02:00</updated><title type='text'>Patterns of Insight</title><subtitle type='html'>Impasse - Fixation - Incubation - Eureka</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jrrsmaug.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37219997/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jrrsmaug.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bernhard</name><uri>http://www.blogger.com/profile/09112923565667054084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-37219997.post-116280739940933471</id><published>2006-11-06T11:02:00.000+01:00</published><updated>2006-11-06T17:34:27.316+01:00</updated><title type='text'>Using jMock in Spring Web Flow Tests</title><content type='html'>Recently we had to unit test a flow (&lt;a href="http://opensource.atlassian.com/confluence/spring/display/WEBFLOW/Home"&gt;Spring Web Flow&lt;/a&gt;) which posed a little problem, because we wanted to mock out the service call in the flow action. Since flow tests have to inherit from Springs AbstractXmlFlowExecutionTests class we couldn't use jMock where you have to use MockObjectTestCase as base class.&lt;br /&gt;&lt;br /&gt;Luckily someone else ran into the same problem before and Tadatoshi Takahashi came up with this &lt;a href="http://jira.codehaus.org/browse/JMOCK-97"&gt;solution&lt;/a&gt; where he separates the mock creation and verification from the jMock framework. Using this and the static import function of Java 5 our unit test works like charm.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37219997-116280739940933471?l=jrrsmaug.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jrrsmaug.blogspot.com/feeds/116280739940933471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37219997&amp;postID=116280739940933471' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37219997/posts/default/116280739940933471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37219997/posts/default/116280739940933471'/><link rel='alternate' type='text/html' href='http://jrrsmaug.blogspot.com/2006/11/using-jmock-in-spring-web-flow-tests.html' title='Using jMock in Spring Web Flow Tests'/><author><name>Bernhard</name><uri>http://www.blogger.com/profile/09112923565667054084</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
