We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dd3f8e commit fd3a65cCopy full SHA for fd3a65c
1 file changed
src/test/java/com/sendgrid/SendGridTest.java
@@ -58,6 +58,32 @@ public class SendGridTest {
58
59
}
60
61
+ @Test public void testDropSmtpTo() {
62
+ email = new SendGrid.Email();
63
+
64
+ String to = "email@example.com";
65
+ email.addTo(to);
66
+ email.dropSMTPITos();
67
68
+ Map correct = new HashMap();
69
+ correct.put("to[0]", "email@example.com");
70
71
+ assertEquals(correct, email.toWebFormat());
72
73
+ }
74
75
+ @Test public void testAddToName() {
76
77
78
+ String name = "John";
79
+ email.addToName(name);
80
81
82
+ correct.put("toname[0]", name);
83
84
85
86
87
@Test public void testSetFrom() {
88
email = new SendGrid.Email();
89
0 commit comments