<?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 on: Neat multiset in google collections API</title>
	<atom:link href="http://martinaharris.com/2009/10/neat-multiset-in-google-collections-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://martinaharris.com/2009/10/neat-multiset-in-google-collections-api/</link>
	<description>Next time you look it might be gone</description>
	<lastBuildDate>Tue, 13 Jul 2010 22:32:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Martin Harris</title>
		<link>http://martinaharris.com/2009/10/neat-multiset-in-google-collections-api/#comment-9</link>
		<dc:creator>Martin Harris</dc:creator>
		<pubDate>Sat, 21 Nov 2009 22:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://martinaharris.com/?p=113#comment-9</guid>
		<description>Just found another way to achieving order independent assertions.

Unitils is a collection of utilities that target in particular database testing.  The problem mentioned above occurs there too.

http://unitils.org/tutorial.html Shows the following alternative solution:
assertReflectionEquals(Arrays.asList(1, 2, 3), myList, LENIENT_ORDER);

I have long held the view, that you should avoid default values like null, and for numerics, 0 in database tests.  In fact I usually write my test data classes so that they will reject such values.  Here is another handy utility in that space:
assertReflectionEquals(expectedUser, actualUser, IGNORE_DEFAULTS);</description>
		<content:encoded><![CDATA[<p>Just found another way to achieving order independent assertions.</p>
<p>Unitils is a collection of utilities that target in particular database testing.  The problem mentioned above occurs there too.</p>
<p><a href="http://unitils.org/tutorial.html" rel="nofollow">http://unitils.org/tutorial.html</a> Shows the following alternative solution:<br />
assertReflectionEquals(Arrays.asList(1, 2, 3), myList, LENIENT_ORDER);</p>
<p>I have long held the view, that you should avoid default values like null, and for numerics, 0 in database tests.  In fact I usually write my test data classes so that they will reject such values.  Here is another handy utility in that space:<br />
assertReflectionEquals(expectedUser, actualUser, IGNORE_DEFAULTS);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

