<?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 Frame2</title>
	<atom:link href="http://frame2.megatome.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://frame2.megatome.com</link>
	<description>Just another Java Web Framework</description>
	<pubDate>Wed, 07 Jan 2009 13:11:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Using Pipes to Squash a Bug by ProGasCasMash</title>
		<link>http://frame2.megatome.com/archives/19/comment-page-1#comment-12</link>
		<dc:creator>ProGasCasMash</dc:creator>
		<pubDate>Thu, 04 Dec 2008 14:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://frame2.megatome.com/archives/19#comment-12</guid>
		<description>I have been reading here for a while now and thought it would only be fair to register and contribute instead of being a silent reader. So – I am looking forward to be a full part of the community!

Take care!

ProGasCasMash

http://www.hoppenrath.com/isp/avatar_e.jpg</description>
		<content:encoded><![CDATA[<p>I have been reading here for a while now and thought it would only be fair to register and contribute instead of being a silent reader. So – I am looking forward to be a full part of the community!</p>
<p>Take care!</p>
<p>ProGasCasMash</p>
<p><a href="http://www.hoppenrath.com/isp/avatar_e.jpg" rel="nofollow">http://www.hoppenrath.com/isp/avatar_e.jpg</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Unit Testing Web Applications is a Pain by Mike Kaufman</title>
		<link>http://frame2.megatome.com/archives/6/comment-page-1#comment-8</link>
		<dc:creator>Mike Kaufman</dc:creator>
		<pubDate>Thu, 05 Jun 2008 14:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://frame2.megatome.com/archives/6#comment-8</guid>
		<description>If this subject is still of any interest to you, another way you can now do out-of-container testing of web-application code is using my own "ObMimic" library. 

This provides plain-Java classes that "mimic" the whole Servlet API for precisely this purpose - and to make testing of web-applications less of a pain. You might find this a useful alternative or supplement to StrutsTestCase.

ObMimic covers all of the Servlet API's interfaces and abstract classes and completely implements all of their methods. It does this with plain Java objects that are fully configurable, fully inspectable, and have some additional features to help in testing (e.g. record/examine the Servlet API calls made to each object, report any ambiguous or questionable Servlet API calls, switch between Servlet 2.3, 2.4, 2.5).

In particular, it does fully implement ServletContext.getResourceAsStream, so you could now test this outside of a container. Your test code can programmatically control what resource is to be returned for any given path, supplying this as a file, byte array, classpath resource, or a URL, or by specifing a root directory whose files are to be taken as the context's resources. You can even configure it to return an InputStream that throws IOExceptions when read, so that you can test any corresponding error handling.

Because ObMimic can handle even more complex uses of the API (e.g. request-dispatcher "forwards" and "includes", listener notifications, servlet mappings, filter chains etc), you might also be able to use it not just for pure "unit" testing but also for testing more extensive paths through your code.

As of May/June 2008 this is in private "beta" release, but if you want to take a look at it just let me know and we'll set you up. For more details, see my recent &lt;a href="http://closingbraces.net/2008/05/30/obmimicprivatebeta/" rel="nofollow"&gt;blog posting&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>If this subject is still of any interest to you, another way you can now do out-of-container testing of web-application code is using my own &#8220;ObMimic&#8221; library. </p>
<p>This provides plain-Java classes that &#8220;mimic&#8221; the whole Servlet API for precisely this purpose - and to make testing of web-applications less of a pain. You might find this a useful alternative or supplement to StrutsTestCase.</p>
<p>ObMimic covers all of the Servlet API&#8217;s interfaces and abstract classes and completely implements all of their methods. It does this with plain Java objects that are fully configurable, fully inspectable, and have some additional features to help in testing (e.g. record/examine the Servlet API calls made to each object, report any ambiguous or questionable Servlet API calls, switch between Servlet 2.3, 2.4, 2.5).</p>
<p>In particular, it does fully implement ServletContext.getResourceAsStream, so you could now test this outside of a container. Your test code can programmatically control what resource is to be returned for any given path, supplying this as a file, byte array, classpath resource, or a URL, or by specifing a root directory whose files are to be taken as the context&#8217;s resources. You can even configure it to return an InputStream that throws IOExceptions when read, so that you can test any corresponding error handling.</p>
<p>Because ObMimic can handle even more complex uses of the API (e.g. request-dispatcher &#8220;forwards&#8221; and &#8220;includes&#8221;, listener notifications, servlet mappings, filter chains etc), you might also be able to use it not just for pure &#8220;unit&#8221; testing but also for testing more extensive paths through your code.</p>
<p>As of May/June 2008 this is in private &#8220;beta&#8221; release, but if you want to take a look at it just let me know and we&#8217;ll set you up. For more details, see my recent <a href="http://closingbraces.net/2008/05/30/obmimicprivatebeta/" rel="nofollow" onclick="javascript:pageTracker._trackPageview ('/outbound/closingbraces.net');">blog posting</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
