<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Blog</title>
	<atom:link href="http://www.scarba05.co.uk/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scarba05.co.uk/blog</link>
	<description></description>
	<lastBuildDate>Tue, 03 May 2011 15:11:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on More on integration testing of Spring’s MVC annotation mapppings for controllers by Anthony</title>
		<link>http://www.scarba05.co.uk/blog/2010/07/more-on-integration-testing-of-spring%e2%80%99s-mvc-annotation-mapppings-for-controllers/comment-page-1/#comment-2936</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Tue, 03 May 2011 15:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=143#comment-2936</guid>
		<description>Richard, 

The error is saying that there is no MVC HandlerAdaptor bean present in your context.  This is set-up by Spring MVC. Does your applicationContextTest.xml include a Spring MVC initialization?  

e.g. I use the &lt;a href=&quot;http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-annotation-driven&quot; rel=&quot;nofollow&quot;&gt;mvc:annotation-driven&lt;/a&gt; element to do this.</description>
		<content:encoded><![CDATA[<p>Richard, </p>
<p>The error is saying that there is no MVC HandlerAdaptor bean present in your context.  This is set-up by Spring MVC. Does your applicationContextTest.xml include a Spring MVC initialization?  </p>
<p>e.g. I use the <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-annotation-driven" rel="nofollow">mvc:annotation-driven</a> element to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on More on integration testing of Spring’s MVC annotation mapppings for controllers by Richard</title>
		<link>http://www.scarba05.co.uk/blog/2010/07/more-on-integration-testing-of-spring%e2%80%99s-mvc-annotation-mapppings-for-controllers/comment-page-1/#comment-2719</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 02 Apr 2011 02:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=143#comment-2719</guid>
		<description>I can&#039;t get this to run without errors.

org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.web.servlet.HandlerAdapter] is defined: expected single bean but found 0: 

I&#039;m using it against my own controller and used @Autowired instead of @Inject on my applicationContext.  I have changed my context configuration to:

@ContextConfiguration(locations = { &quot;classpath:applicationContextTest.xml&quot; })

Do I need to explicitly define a handleAdapter in my application context?

Any help would be greatly appreciated.  Thanks!</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get this to run without errors.</p>
<p>org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.web.servlet.HandlerAdapter] is defined: expected single bean but found 0: </p>
<p>I&#8217;m using it against my own controller and used @Autowired instead of @Inject on my applicationContext.  I have changed my context configuration to:</p>
<p>@ContextConfiguration(locations = { &#8220;classpath:applicationContextTest.xml&#8221; })</p>
<p>Do I need to explicitly define a handleAdapter in my application context?</p>
<p>Any help would be greatly appreciated.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integration testing of Spring&#8217;s MVC annotation mapppings for controllers by Scarba05 Limited &#8212; More on integration testing of Spring’s MVC annotation mapppings for controllers &#171; Blog &#8212; More on integration testing of Spring’s MVC annotation mapppings for controllers</title>
		<link>http://www.scarba05.co.uk/blog/2010/03/integration-testing-of-springs-mvc-annotation-mapppings-for-controllers/comment-page-1/#comment-317</link>
		<dc:creator>Scarba05 Limited &#8212; More on integration testing of Spring’s MVC annotation mapppings for controllers &#171; Blog &#8212; More on integration testing of Spring’s MVC annotation mapppings for controllers</dc:creator>
		<pubDate>Wed, 28 Jul 2010 20:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=90#comment-317</guid>
		<description>[...] while back I posted some thoughts on how to integration test Spring’s MVC annotation mapppings for controllers.  Since then I&#8217;ve developed my strategy a little further after find a few gaps in my [...]</description>
		<content:encoded><![CDATA[<p>[...] while back I posted some thoughts on how to integration test Spring’s MVC annotation mapppings for controllers.  Since then I&#8217;ve developed my strategy a little further after find a few gaps in my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integration testing of Spring&#8217;s MVC annotation mapppings for controllers by Anthony</title>
		<link>http://www.scarba05.co.uk/blog/2010/03/integration-testing-of-springs-mvc-annotation-mapppings-for-controllers/comment-page-1/#comment-315</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Wed, 28 Jul 2010 19:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=90#comment-315</guid>
		<description>Dave,

Not sure why you&#039;re getting a &lt;code&gt;ClassCastException&lt;/code&gt;.  Which line (equivalent) is it happening on?  Are you using Spring 3?  I&#039;ve refined by integration testing strategy a little since this post.  For instance I discovered today that it won&#039;t won&#039;t with the &lt;code&gt;@PathVariable&lt;/code&gt; parameter annotation.  I&#039;ll hopefully find time to post my latest ideas soon.</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Not sure why you&#8217;re getting a <code>ClassCastException</code>.  Which line (equivalent) is it happening on?  Are you using Spring 3?  I&#8217;ve refined by integration testing strategy a little since this post.  For instance I discovered today that it won&#8217;t won&#8217;t with the <code>@PathVariable</code> parameter annotation.  I&#8217;ll hopefully find time to post my latest ideas soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integration testing of Spring&#8217;s MVC annotation mapppings for controllers by Dave Hill</title>
		<link>http://www.scarba05.co.uk/blog/2010/03/integration-testing-of-springs-mvc-annotation-mapppings-for-controllers/comment-page-1/#comment-279</link>
		<dc:creator>Dave Hill</dc:creator>
		<pubDate>Wed, 14 Jul 2010 20:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=90#comment-279</guid>
		<description>almost got your code to run but unless I cause MyController to implement org.springframework.web.servlet.mvc.Controller I get a class cast exception, and if I do implement Controller the action all goes to the handleRequest method and the tests just get the result of that method back.</description>
		<content:encoded><![CDATA[<p>almost got your code to run but unless I cause MyController to implement org.springframework.web.servlet.mvc.Controller I get a class cast exception, and if I do implement Controller the action all goes to the handleRequest method and the tests just get the result of that method back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integration testing of Spring&#8217;s MVC annotation mapppings for controllers by Dave Hill</title>
		<link>http://www.scarba05.co.uk/blog/2010/03/integration-testing-of-springs-mvc-annotation-mapppings-for-controllers/comment-page-1/#comment-278</link>
		<dc:creator>Dave Hill</dc:creator>
		<pubDate>Wed, 14 Jul 2010 20:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=90#comment-278</guid>
		<description>Great code but how about a downloadable file? It takes a while to get your test to a runnable state (dependencies, application context, MyForm, etc...)</description>
		<content:encoded><![CDATA[<p>Great code but how about a downloadable file? It takes a while to get your test to a runnable state (dependencies, application context, MyForm, etc&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hibernate / JPA is swallowing my data: No save, no error by anshuiitk</title>
		<link>http://www.scarba05.co.uk/blog/2010/02/hibernate-jpa-is-swallowing-my-data-no-save-no-error/comment-page-1/#comment-253</link>
		<dc:creator>anshuiitk</dc:creator>
		<pubDate>Wed, 30 Jun 2010 16:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=34#comment-253</guid>
		<description>Posted a possible solution here https://forum.hibernate.org/viewtopic.php?f=1&amp;t=1002889&amp;p=2432543

Which is possibly cleaner then flush() ( degrades performance ) and if you dont want to make the method Transactional but instead throw an exception (because presumably you want the caller to handle transactions)</description>
		<content:encoded><![CDATA[<p>Posted a possible solution here <a href="https://forum.hibernate.org/viewtopic.php?f=1&#038;t=1002889&#038;p=2432543" rel="nofollow">https://forum.hibernate.org/viewtopic.php?f=1&#038;t=1002889&#038;p=2432543</a></p>
<p>Which is possibly cleaner then flush() ( degrades performance ) and if you dont want to make the method Transactional but instead throw an exception (because presumably you want the caller to handle transactions)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hibernate / JPA is swallowing my data: No save, no error by anshuiitk</title>
		<link>http://www.scarba05.co.uk/blog/2010/02/hibernate-jpa-is-swallowing-my-data-no-save-no-error/comment-page-1/#comment-252</link>
		<dc:creator>anshuiitk</dc:creator>
		<pubDate>Wed, 30 Jun 2010 10:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.scarba05.co.uk/blog/?p=34#comment-252</guid>
		<description>Nice post. Did you figure out another way of knowing that a transaction is not present (apart from the flush(), bacause as you said its somehow ugly and less performant)</description>
		<content:encoded><![CDATA[<p>Nice post. Did you figure out another way of knowing that a transaction is not present (apart from the flush(), bacause as you said its somehow ugly and less performant)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

