<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jayway Team Blog &#187; toos</title>
	<atom:link href="http://blog.jayway.com/tag/toos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Sat, 11 Feb 2012 10:33:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Questioning &#8220;testable design&#8221;</title>
		<link>http://blog.jayway.com/2009/04/01/questioning-testable-design/</link>
		<comments>http://blog.jayway.com/2009/04/01/questioning-testable-design/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 09:11:14 +0000</pubDate>
		<dc:creator>Mattias Ask</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[powermock]]></category>
		<category><![CDATA[toos]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.jayway.com/?p=1480</guid>
		<description><![CDATA[After a discussion about PowerMock with @olabini on Twitter I felt I had to write a post on testability. The truth "Autonomous, re-runnable, code-based tests are objectivity good" has created a perceived truth, namely "Testable design is good design". This assumption is incorrect. The phrase "testable design" is dependent of two things; the design of [...]]]></description>
			<content:encoded><![CDATA[<p>After a <a href="http://search.twitter.com/search?max_id=1430211295&page=1&q=olabini+mattiasask">discussion about PowerMock</a> with <a href="http://twitter.com/olabini">@olabini</a> on Twitter I felt I had to write a post on testability.</p>
<p>The truth "<em>Autonomous, re-runnable, code-based tests are objectivity good</em>" has created a perceived truth, namely "<em>Testable design is good design</em>". This assumption is incorrect.</p>
<p>The phrase "testable design" is dependent of two things; the design of the code under test AND the tools used for testing the code. This is a problem when the major tools today in the Java world tells you to not test private methods, final classes<br />
and so on.</p>
<p>Yes, there is a big overlap between testable design and good design, but should the test tools you use govern your design? Conscious and good design choices should govern the structure of your code, and testability should come with that.</p>
<p><a href="http://code.google.com/p/powermock/">PowerMock</a> changes the phrase "Testable design is always good" to what it should be, and that is "Good design is always testable".</p>
<p>And when it comes to the hurt of legacy code, would you rather re-factor the code in order to write tests, or write tests to be able to re-factor the code safely?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jayway.com/2009/04/01/questioning-testable-design/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

