You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2007/02/06 04:55:52 UTC
svn commit: r503970 -
/jakarta/commons/proper/email/trunk/src/test/org/apache/commons/mail/BaseEmailTestCase.java
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