File: javamail-compatibility.diff

package info (click to toggle)
dumbster 1.6%2Bdebian-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 232 kB
  • sloc: java: 714; xml: 89; makefile: 12; sh: 6
file content (11 lines) | stat: -rw-r--r-- 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/test-src/com/dumbster/smtp/SimpleSmtpServerTest.java
+++ b/test-src/com/dumbster/smtp/SimpleSmtpServerTest.java
@@ -74,7 +74,7 @@
     assertTrue(server.getReceivedEmailSize() == 1);
     Iterator emailIter = server.getReceivedEmail();
     SmtpMessage email = (SmtpMessage) emailIter.next();
-    assertTrue(email.getBody().equals(bodyWithCR));
+    assertEquals("body", "\n\nKeep these pesky carriage returns\n", email.getBody());
   }
 
   public void testSendTwoMessagesSameConnection() {