diff options
| author | Vincent Richard <[email protected]> | 2013-09-08 18:49:51 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-09-08 18:49:51 +0000 |
| commit | 3b130214698904b75f86953c819491e6828a2219 (patch) | |
| tree | 92a902890862aba8514b386eb3a5b05f9583e694 /tests/net/smtp/SMTPTransportTest.cpp | |
| parent | Added required includes for MSVC. (diff) | |
| download | vmime-3b130214698904b75f86953c819491e6828a2219.tar.gz vmime-3b130214698904b75f86953c819491e6828a2219.zip | |
SMTP-specific exceptions.
Diffstat (limited to 'tests/net/smtp/SMTPTransportTest.cpp')
| -rw-r--r-- | tests/net/smtp/SMTPTransportTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/net/smtp/SMTPTransportTest.cpp b/tests/net/smtp/SMTPTransportTest.cpp index 4fc899dd..13c18309 100644 --- a/tests/net/smtp/SMTPTransportTest.cpp +++ b/tests/net/smtp/SMTPTransportTest.cpp @@ -25,6 +25,7 @@ #include "vmime/net/smtp/SMTPTransport.hpp" #include "vmime/net/smtp/SMTPChunkingOutputStreamAdapter.hpp" +#include "vmime/net/smtp/SMTPExceptions.hpp" #include "SMTPTransportTestUtils.hpp" @@ -143,7 +144,7 @@ VMIME_TEST_SUITE_BEGIN(SMTPTransportTest) vmime::ref <vmime::message> msg = vmime::create <SMTPBigTestMessage4MB>(); VASSERT_THROW("Connection", tr->send(msg, exp, recips), - vmime::exceptions::message_size_exceeds_max_limits); + vmime::net::smtp::SMTPMessageSizeExceedsMaxLimitsException); } void testSize_NoChunking() @@ -170,7 +171,7 @@ VMIME_TEST_SUITE_BEGIN(SMTPTransportTest) vmime::ref <vmime::message> msg = vmime::create <SMTPBigTestMessage4MB>(); VASSERT_THROW("Connection", tr->send(msg, exp, recips), - vmime::exceptions::message_size_exceeds_max_limits); + vmime::net::smtp::SMTPMessageSizeExceedsMaxLimitsException); } VMIME_TEST_SUITE_END |
