james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1154669 - /james/server/trunk/data-library/src/test/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTableTest.java
Date Sun, 07 Aug 2011 08:15:19 GMT
Author: eric
Date: Sun Aug  7 08:15:19 2011
New Revision: 1154669

URL: http://svn.apache.org/viewvc?rev=1154669&view=rev
Log:
Use assertEquals rather than assertTrue in test to see the returned value in the log

Modified:
    james/server/trunk/data-library/src/test/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTableTest.java

Modified: james/server/trunk/data-library/src/test/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTableTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/data-library/src/test/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTableTest.java?rev=1154669&r1=1154668&r2=1154669&view=diff
==============================================================================
--- james/server/trunk/data-library/src/test/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTableTest.java
(original)
+++ james/server/trunk/data-library/src/test/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTableTest.java
Sun Aug  7 08:15:19 2011
@@ -206,8 +206,8 @@ public abstract class AbstractRecipientR
             assertTrue("Added virtual mapping", addMapping(RecipientRewriteTable.WILDCARD,
domain, address, ADDRESS_TYPE));
             assertTrue("Added virtual mapping", addMapping(user, domain, address2, ADDRESS_TYPE));
 
-            assertTrue("One mappings", virtualUserTable.getMappings(user, domain).size()
== 1);
-            assertTrue("One mappings", virtualUserTable.getMappings(user2, domain).size()
== 1);
+            assertEquals("One mappings", 1, virtualUserTable.getMappings(user, domain).size());
+            assertEquals("One mappings", 1, virtualUserTable.getMappings(user2, domain).size());
 
             assertTrue("remove virtual mapping", removeMapping(user, domain, address2, ADDRESS_TYPE));
             assertTrue("remove virtual mapping", removeMapping(RecipientRewriteTable.WILDCARD,
domain, address, ADDRESS_TYPE));



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message