commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r503970 - /jakarta/commons/proper/email/trunk/src/test/org/apache/commons/mail/BaseEmailTestCase.java
Date Tue, 06 Feb 2007 03:55:52 GMT
Author: dion
Date: Mon Feb  5 19:55:51 2007
New Revision: 503970

URL: http://svn.apache.org/viewvc?view=rev&rev=503970
Log:
Add some messages to the asserts so that when they fail, we know what was happening.

Modified:
    jakarta/commons/proper/email/trunk/src/test/org/apache/commons/mail/BaseEmailTestCase.java

Modified: jakarta/commons/proper/email/trunk/src/test/org/apache/commons/mail/BaseEmailTestCase.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/email/trunk/src/test/org/apache/commons/mail/BaseEmailTestCase.java?view=diff&rev=503970&r1=503969&r2=503970
==============================================================================
--- jakarta/commons/proper/email/trunk/src/test/org/apache/commons/mail/BaseEmailTestCase.java
(original)
+++ jakarta/commons/proper/email/trunk/src/test/org/apache/commons/mail/BaseEmailTestCase.java
Mon Feb  5 19:55:51 2007
@@ -116,7 +116,7 @@
         if (this.fakeMailServer != null && !this.fakeMailServer.isStopped())
         {
             this.fakeMailServer.stop();
-            assertTrue(this.fakeMailServer.isStopped());
+            assertTrue("Mail server didn't stop", this.fakeMailServer.isStopped());
         }
 
         this.fakeMailServer = null;
@@ -168,7 +168,7 @@
             this.fakeMailServer =
                     SimpleSmtpServer.start(getMailServerPort());
 
-            assertFalse(this.fakeMailServer.isStopped());
+            assertFalse("fake mail server didn't start", this.fakeMailServer.isStopped());
 
             Date dtStartWait = new Date();
             while (this.fakeMailServer.isStopped())



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


Mime
View raw message