[Japi-cvs] SF.net SVN: japi:[868] historic/trunk/src/test/net/sf/japi/util/PairTest. java
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2009-02-15 12:12:38
|
Revision: 868
http://japi.svn.sourceforge.net/japi/?rev=868&view=rev
Author: christianhujer
Date: 2009-02-15 11:58:09 +0000 (Sun, 15 Feb 2009)
Log Message:
-----------
Improved Unit tests, e.g. add messages, bring expected and actual in right order, use assertEquals.
Modified Paths:
--------------
historic/trunk/src/test/net/sf/japi/util/PairTest.java
Modified: historic/trunk/src/test/net/sf/japi/util/PairTest.java
===================================================================
--- historic/trunk/src/test/net/sf/japi/util/PairTest.java 2009-02-15 11:06:41 UTC (rev 867)
+++ historic/trunk/src/test/net/sf/japi/util/PairTest.java 2009-02-15 11:58:09 UTC (rev 868)
@@ -78,9 +78,9 @@
*/
public void testEquals() throws Exception {
assertFalse("A pair must not be equal to random objects.", oUT.equals(new Object()));
- assertTrue("A pair must be equal to itself", oUT.equals(oUT));
- assertTrue("A pair must be equal to another pair with same first and second", oUT.equals(new Pair<Object,Object>(first, second)));
- assertTrue("A pair must be equal to another pair with equal first and second", oUT.equals(new Pair<Object,Object>(new String(first.toCharArray()), new String(second.toCharArray()))));
+ assertEquals("A pair must be equal to itself", oUT, oUT);
+ assertEquals("A pair must be equal to another pair with same first and second", oUT, new Pair<Object, Object>(first, second));
+ assertEquals("A pair must be equal to another pair with equal first and second", oUT, new Pair<Object, Object>(new String(first.toCharArray()), new String(second.toCharArray())));
}
} // class PairTest
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|