How to unit test third-party email components in Delphi?

I am writing new code that includes POP3 manipulation. I'm trying to come up with a design that allows me to write tests, so it’s pretty untied and runs most of the new code that I write.

The problem I am facing is that I still need to verify that the correct way is to use a third-party component for email. This includes testing, for example, strange responses from failed POP3 servers.

Now I am using the POP3 mock client, so I can check the logic around a possible scenario when the client receives either an error or a strange answer. However, I still need to verify that these assumptions are true and remain true after, for example, updating third-party components.

There is also SMTP. I know there is a Dumbster in the Java world .

What are my alternatives to Delphi? Create my own mini-servers using regular suspects ?

+3
source share
1 answer

Well, I hate being human to confirm what you suspect, but:

() ( , , , Delphi , Java Dumpster) ...

(b) , Indy, ICS Synapse , , ... ICS, . Indy , .

(c) Linux, POP3/SMTP, ISP , , , VM Windows + Exchange, MSDN .

, . . , unit test, , .

, , QA-TEST-NETWORK BOX, , , . , WAN .

+2

All Articles