commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1697382 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/smtp/SimpleSMTPHeaderTestCase.java
Date Mon, 24 Aug 2015 13:09:10 GMT
Author: sebb
Date: Mon Aug 24 13:09:09 2015
New Revision: 1697382

URL: http://svn.apache.org/r1697382
Log:
SImplify

Modified:
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/smtp/SimpleSMTPHeaderTestCase.java

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/smtp/SimpleSMTPHeaderTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/smtp/SimpleSMTPHeaderTestCase.java?rev=1697382&r1=1697381&r2=1697382&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/smtp/SimpleSMTPHeaderTestCase.java
(original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/smtp/SimpleSMTPHeaderTestCase.java
Mon Aug 24 13:09:09 2015
@@ -31,13 +31,10 @@ public class SimpleSMTPHeaderTestCase {
 
     @Test(expected=IllegalArgumentException.class)
     public void testToStringNoFrom() {
-        SimpleSMTPHeader hdr = new SimpleSMTPHeader(null, null, null);
-        assertNotNull(hdr);
-        // Note that the DotTerminatedMessageWriter converts LF to CRLF
-        assertEquals("From: from@here.invalid\n\n", hdr.toString());
+        new SimpleSMTPHeader(null, null, null);
     }
-    @Test
 
+    @Test
     public void testToStringNoTo() {
         SimpleSMTPHeader hdr = new SimpleSMTPHeader("from@here.invalid", null, null);
         assertNotNull(hdr);



Mime
View raw message