You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/24 15:09:10 UTC
svn commit: r1697382 -
/commons/proper/net/trunk/src/test/java/org/apache/commons/net/smtp/SimpleSMTPHeaderTestCase.java
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);