commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1507606 - /commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java
Date Sat, 27 Jul 2013 09:06:01 GMT
Author: britter
Date: Sat Jul 27 09:06:01 2013
New Revision: 1507606

URL: http://svn.apache.org/r1507606
Log:
Remove another senseless assertion, Authenticator is the methods return type - no need to
test this

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

Modified: commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java?rev=1507606&r1=1507605&r2=1507606&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java (original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java Sat Jul
27 09:06:01 2013
@@ -21,7 +21,6 @@ import static org.junit.Assert.assertFal
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
-import javax.mail.Authenticator;
 import javax.mail.Session;
 import javax.mail.internet.InternetAddress;
 import javax.mail.internet.MimeMessage;
@@ -137,8 +136,6 @@ public class EmailTest extends AbstractE
             (DefaultAuthenticator) email.getAuthenticator();
 
         // tests
-        assertTrue(
-            Authenticator.class.isInstance(email.getAuthenticator()));
         assertEquals(
                 strUsername,
                 retrievedAuth.getPasswordAuthentication().getUserName());



Mime
View raw message