aboutsummaryrefslogtreecommitdiffstats
path: root/tests/net/smtp/SMTPCommandTest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-02-17 17:07:23 +0000
committerVincent Richard <[email protected]>2013-02-17 17:07:23 +0000
commit0757efad0d0669766236eefbedad98ee8541a5f5 (patch)
treecd157a402a5f0c6d9bc3da37a33987981d708b0c /tests/net/smtp/SMTPCommandTest.cpp
parentAlways throw std exceptions (eg. bad_alloc) and VMime time out exceptions. (diff)
downloadvmime-0757efad0d0669766236eefbedad98ee8541a5f5.tar.gz
vmime-0757efad0d0669766236eefbedad98ee8541a5f5.zip
Reset SMTP session state (using RSET command) if transport is being reused.
Diffstat (limited to '')
-rw-r--r--tests/net/smtp/SMTPCommandTest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/net/smtp/SMTPCommandTest.cpp b/tests/net/smtp/SMTPCommandTest.cpp
index 93cdf7ae..0ff52741 100644
--- a/tests/net/smtp/SMTPCommandTest.cpp
+++ b/tests/net/smtp/SMTPCommandTest.cpp
@@ -44,6 +44,7 @@ VMIME_TEST_SUITE_BEGIN
VMIME_TEST(testSTARTTLS)
VMIME_TEST(testMAIL)
VMIME_TEST(testRCPT)
+ VMIME_TEST(testRSET)
VMIME_TEST(testDATA)
VMIME_TEST(testNOOP)
VMIME_TEST(testQUIT)
@@ -115,6 +116,14 @@ VMIME_TEST_SUITE_BEGIN
VASSERT_EQ("Text", "RCPT TO:<[email protected]>", cmd->getText());
}
+ void testRSET()
+ {
+ vmime::ref <SMTPCommand> cmd = SMTPCommand::RSET();
+
+ VASSERT_NOT_NULL("Not null", cmd);
+ VASSERT_EQ("Text", "RSET", cmd->getText());
+ }
+
void testDATA()
{
vmime::ref <SMTPCommand> cmd = SMTPCommand::DATA();