<?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>Androidsx &#187; testing</title> <atom:link href="http://www.androidsx.com/tag/testing/feed/" rel="self" type="application/rss+xml" /><link>http://www.androidsx.com</link> <description>Android specialists</description> <lastBuildDate>Fri, 02 Dec 2011 09:38:58 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>Don&#8217;t look for things. Ask for them!</title><link>http://www.androidsx.com/dont-look-for-things-ask-for-them/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dont-look-for-things-ask-for-them</link> <comments>http://www.androidsx.com/dont-look-for-things-ask-for-them/#comments</comments> <pubDate>Thu, 26 Nov 2009 10:04:07 +0000</pubDate> <dc:creator>Pablo Pera Mira</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[software quality]]></category> <category><![CDATA[java]]></category> <category><![CDATA[testing]]></category><guid
isPermaLink="false">http://www.androidsx.com/?p=75</guid> <description><![CDATA[Before our previous article, our code to model a mechanic used to look like this: class Mechanic { private final Engine engine = ServiceLocator.getCar().getEngine(); public void fixEngine() { /* ... */ } } Luckily, we applied some dependency injection, resulting in nicer code: testable, and with an explicit dependency on the ServiceLocator: class Mechanic { [...]]]></description> <wfw:commentRss>http://www.androidsx.com/dont-look-for-things-ask-for-them/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Can&#8217;t test that Singleton? Try Dependency Injection!</title><link>http://www.androidsx.com/cant-test-that-singleton-try-dependency-injection/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cant-test-that-singleton-try-dependency-injection</link> <comments>http://www.androidsx.com/cant-test-that-singleton-try-dependency-injection/#comments</comments> <pubDate>Wed, 11 Nov 2009 19:40:06 +0000</pubDate> <dc:creator>Pablo Pera Mira</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[software quality]]></category> <category><![CDATA[java]]></category> <category><![CDATA[testing]]></category><guid
isPermaLink="false">http://www.androidsx.com/?p=60</guid> <description><![CDATA[So you want to test this method: public class Client { public int process(Params params) { final Server server = Server.getInstance(); final Data data = server.retrieveDate(params); // do stuff } } We don&#8217;t want to retrieve an instance of a real server for our little unit-test, so how can we test this method? It is [...]]]></description> <wfw:commentRss>http://www.androidsx.com/cant-test-that-singleton-try-dependency-injection/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 6/12 queries in 0.110 seconds using disk: basic
Object Caching 341/341 objects using disk: basic

Served from: www.androidsx.com @ 2012-02-05 13:48:48 -->
